Skip to content

Commit 8e9a21e

Browse files
authored
fix: correctly match :has()'s selector during css pruning (#15277)
Fixes #14072 `:has()` was matching only against descendants or siblings, but not sibling's descendants. This makes the logic be able to go forward or backwards, simplifying a lot of cases along the way.
1 parent f227cfc commit 8e9a21e

File tree

8 files changed

+353
-297
lines changed

8 files changed

+353
-297
lines changed

.changeset/cuddly-chefs-refuse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: correctly match `:has()` selector during css pruning

0 commit comments

Comments
 (0)