-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
bugcssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling
Description
Describe the bug
As of 5.1.10, selectors like :not(:last-child) are getting erroneously detected as unused.
Reproduction
This does work in the previous version, presumably because we weren't trying to scope the :not() - https://svelte.dev/playground/hello-world?version=5.1.9#H4sIAAAAAAAACm2NQQvCMAyF_0rJaQN17FqH4M3bLt6ch7lGOojNaKNzjP13W3DgwVPyvpf3MoNrHwgaTkjEamRPRmVoekGTwwbuPWEAfZlBpiHdJRD5N3Uchl14IUlitzbgP96xE3QSa6Cy5aF2WBVxNi6p88i_ynpc3UiCTIRpFVtqx5JpaoNsO9uTydWcjEY6JvZaeTT7BJaYK9Zg_C74FtDin7hclw8dQ5rQ7wAAAA==
Logs
Unused CSS selector "h1:not(:last-child)" (css_unused_selector)System Info
n/aSeverity
annoyance
kyle-leonhard, pepa-linha, colinlienard and fregu
Metadata
Metadata
Assignees
Labels
bugcssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling