-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
cssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling
Description
Describe the bug
In the following example, the &:not([aria-expanded])
selector does not get applied.
<script>
import Item from "./Item.svelte";
</script>
<div>
<Item class="item">Item</Item>
</div>
<style>
:global(.item) {
border: 1px solid;
&:not([aria-expanded]) {
border-style: dashed;
}
}
</style>
This is due to a bug in the CSS output.
.item {
border: 1px solid;
&:not(/* (unused) [aria-expanded]*/) {
border-style: dashed;
}
}
Reproduction
Logs
No response
System Info
Not necessary
Severity
annoyance
TomChamberlainUK, Serator, AliceLeRaptor and fnimick
Metadata
Metadata
Assignees
Labels
cssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling