🐛 CSS: media query range formatting #4076
Labels
A-Formatter
Area: formatter
good first issue
Good for newcomers
L-CSS
Language: CSS
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
https://biomejs.dev/playground/?lintRules=all&files.main.css=LgBjAGwAYQBzAHMAIAB7AAoACQBAAG0AZQBkAGkAYQAgACgAMQAwADIANABwAHgAIAA8AD0AIAB3AGkAZAB0AGgAIAA8AD0AIAAxADIAOAAwAHAAeAApACAAewAKAAkACQBjAG8AbABvAHIAOgAgAHIAZQBkADsACgAJAH0ACgB9AA%3D%3D
Expected result
Formatting should match prettier... is what I'd like to say, but prettier doesn't seem to format this well: if I remove any spaces in the range, prettier will not add spaces.
Biome instead adds spaces except after the last
<=
.I'd expect
1024px <= width <= 1280px
to not change formatting.I'd expect
1024px<=width<=1280px
to be formatted as1024px <= width <= 1280px
.https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries
Code of Conduct
The text was updated successfully, but these errors were encountered: