Open Rich-Harris opened 18 hours ago
Because of this line... https://github.com/sveltejs/svelte/blob/dd9abea2a1059cbead398c5578bfd07a3c3ddd69/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js#L955 ...and this line... https://github.com/sveltejs/svelte/blob/dd9abea2a1059cbead398c5578bfd07a3c3ddd69/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js#L955 ...we incorrectly prune sibling selectors when things other than if/each/await blocks are involved. Discovered while working on #14395
No response
latest
annoyance
here's another case that fails
and another
yet another
Describe the bug
Because of this line... https://github.com/sveltejs/svelte/blob/dd9abea2a1059cbead398c5578bfd07a3c3ddd69/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js#L955 ...and this line... https://github.com/sveltejs/svelte/blob/dd9abea2a1059cbead398c5578bfd07a3c3ddd69/packages/svelte/src/compiler/phases/2-analyze/css/css-prune.js#L955 ...we incorrectly prune sibling selectors when things other than if/each/await blocks are involved. Discovered while working on #14395
Reproduction
Logs
No response
System Info
Severity
annoyance