Open fregante opened 20 hours ago
Weird, your formatter bug report template doesn't have an "explanation/description" field.
In short, this piece of CSS ends up being indented badly due to the comment, but only for the second selector:
/* some medium long comment */
.line1 selector,
/* some medium long comment */
.line2 selector {
background: red;
}
Is indented as
/* some medium long comment */
.line1 selector,
/* some medium long comment */
.line2
selector {
background: red;
}
I assume it's because the comment is being considered "part of the selector", so indenting the second line makes sense (ish). But this logic only applies to the second selector in the selector list.
I expect both selectors to have the same exact indentation (the input CSS is already "correctly indented" IMHO)
Note that Prettier does not support indentation at all in this case:
Environment information
Configuration
Playground link
https://biomejs.dev/playground/?indentStyle=space&files.main.css=LwAqACAAcwBvAG0AZQAgAG0AZQBkAGkAdQBtACAAbABvAG4AZwAgAGMAbwBtAG0AZQBuAHQAIAAqAC8ACgAuAHMAbwBtAGUAIABzAGUAbABlAGMAdABvAHIAIAB7AAoAIAAgAGIAYQBjAGsAZwByAG8AdQBuAGQAOgAgAHIAZQBkADsACgB9AAoACgAvACoAIABzAG8AbQBlACAAbQBlAGQAaQB1AG0AIABsAG8AbgBnACAAYwBvAG0AbQBlAG4AdAAgACoALwAKAC4AbABpAG4AZQAxACAAcwBlAGwAZQBjAHQAbwByACwACgAvACoAIABzAG8AbQBlACAAbQBlAGQAaQB1AG0AIABsAG8AbgBnACAAYwBvAG0AbQBlAG4AdAAgACoALwAKAC4AbABpAG4AZQAyACAAcwBlAGwAZQBjAHQAbwByACAAewAKACAAIABiAGEAYwBrAGcAcgBvAHUAbgBkADoAIAByAGUAZAA7AAoAfQA%3D
Code of Conduct