Skip to content

Commit 16f28a1

Browse files
committed
this bit is nonsensical, parent cannot exist if there was no combinator
1 parent 301c402 commit 16f28a1

File tree

1 file changed

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

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,7 @@ function apply_selector(relative_selectors, rule, element) {
177177
return matched;
178178
}
179179

180-
// if this is the left-most non-global selector, mark it — we want
181-
// `x y z {...}` to become `x.blah y z.blah {...}`
182-
const parent = parent_selectors[parent_selectors.length - 1];
183-
if (!parent || is_global(parent, rule)) {
184-
mark(relative_selector, element);
185-
}
180+
mark(relative_selector, element);
186181

187182
return true;
188183
}

0 commit comments

Comments
 (0)