Prettier 3.9.4
Playground link
# Options (if any):
--parser css
Input:
div {
border-radius: attr(br type(<length>+));
}
Output:
div {
border-radius: attr(br type(<length> +));
}
Expected output:
div {
border-radius: attr(br type(<length>+));
}
There should be no space between the > and the +
Why?
The type(<length>+) is only valid with no space between the > and the + so having the space breaks the functionality. See MDN article on type() or CSSWG spec
Prettier 3.9.4
Playground link
# Options (if any): --parser cssInput:
Output:
Expected output:
There should be no space between the
>and the+Why?
The
type(<length>+)is only valid with no space between the>and the+so having the space breaks the functionality. See MDN article on type() or CSSWG spec