Sibling Combinator combined with :has
can be improperly marked as unused
#14072
Labels
css
Stuff related to Svelte's built-in CSS handling
Describe the bug
I've got some complex sibling combinator +
:has
css selectors that match the DOM but are reported as unused by Svelte. Through further testing, it appears that some trivial cases are incorrectly marked as unused.Reproduction
./packages/svelte/tests/css/samples/has/input.svelte
style
blockNotice that these are valid selectors based on the given DOM structure
css_unused_selector
errors. I've found that wrappingc
in:global()
seems to get rid of the errors, but I'm not sure if that should be required to get this selector working.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: