Syntax highlight for CSS looks weird with modern css syntax, for example:
@property --hue {
syntax: '<number>'; /* no highlight & white text */
inherits: false; /* no highlight & white text */
initial-value: 200;
}
.results-container {
display: grid;
gap: 0.75rem;
container-type: inline-size; /* no highlight & white text */
container-name: results; /* no highlight & white text */
}
.info-icon {
padding: 0.25rem;
color: hsl(var(--primary) / 0.6);
border-radius: var(--radius-sm);
transition: all 0.2s ease;
&:hover { /* no highlight & white text */
background: hsl(var(--primary) / 0.1);
color: hsl(var(--primary));
}
}
@container results (max-width: 1200px) { /* no highlight & white text */
Reproduction
Create a new svelte project and paste the following code in your +page.svelte, highlights will be missing
Describe the bug
Syntax highlight for CSS looks weird with modern css syntax, for example:
Reproduction
Create a new svelte project and paste the following code in your +page.svelte, highlights will be missing
Expected behaviour
The expected behaviour should be the proper highlighting of the css properties
System Info
Which package is the issue about?
No response
Additional Information, eg. Screenshots
Example