We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:not
For the following Svelte component I would expect that the h1 element would be styled with a red background:
h1
<script> const x = false; </script> <h1 class:x>Hello, world!</h1> <style> h1:not(.x) { background-color: red; } </style>
Instead, no background color is applied to the element and a warning is produced: Unused CSS selector "h1:not(.x)"
Unused CSS selector "h1:not(.x)"
https://svelte.dev/playground/7e9220bafc094e209bb9a53e7e7bb48d?version=5.1.10
No response
N/A
annoyance
The text was updated successfully, but these errors were encountered:
I came to the issue tracker to report the same thing — this works in 5.1.9, not in 5.1.10. It broke in #13999
Sorry, something went wrong.
See also #14168, another thing that was broken.
See also also #14166, something that (I think?) was fixed.
closing as dupe of #14168
No branches or pull requests
Describe the bug
For the following Svelte component I would expect that the
h1
element would be styled with a red background:Instead, no background color is applied to the element and a warning is produced:
Unused CSS selector "h1:not(.x)"
Reproduction
https://svelte.dev/playground/7e9220bafc094e209bb9a53e7e7bb48d?version=5.1.10
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: