Skip to content

Commit b1fb7ac

Browse files
committed
note to self
1 parent 4dd3c9c commit b1fb7ac

File tree

1 file changed

+1
-0
lines changed
  • packages/svelte/src/compiler/phases/2-analyze/css

1 file changed

+1
-0
lines changed

packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function apply_selector(relative_selectors, rule, element, stylesheet) {
146146
relative_selector.combinator.type === 'Combinator' &&
147147
relative_selector.combinator.name === ' '
148148
) {
149+
// TODO this is incorrect, it will match `.this-matches .this-does-not .this-does {...}`
149150
for (const ancestor_selector of relative_selectors) {
150151
if (ancestor_selector.metadata.is_global) {
151152
continue;

0 commit comments

Comments
 (0)