Describe the bug
For the following Svelte component I would expect that the h1 element would be styled with a red background:
<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)"
Reproduction
https://svelte.dev/playground/7e9220bafc094e209bb9a53e7e7bb48d?version=5.1.10
Logs
No response
System Info
Severity
annoyance