-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
bugcompilerChanges relating to the compilerChanges relating to the compilercssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling
Description
Describe the bug
The bug is self explanatory.
Reproduction
The following code causes the compiler to crash indicating the CSS identifier is invalid.
<style>
h1:nth-of-type(2n+1){
background: red;
}
</style>
<h1>Broken</h1>
<h1>Broken</h1>
<h1>Broken</h1>
The same code compiles and works on Svelte 4 REPL.
Logs
No response
System Info
Not needed
Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
bugcompilerChanges relating to the compilerChanges relating to the compilercssStuff related to Svelte's built-in CSS handlingStuff related to Svelte's built-in CSS handling