When writing a CSS selector that has a CSS Variable (Function) that comes after something like an Identifier, the resulting CSS is incorrectly optimized with a space missing between the Declaration values
Input
.snippet {
padding: 0 var(--size-4);
}
Output
# actual
.snippet{padding:0var(--size-4);}
# expected
.snippet{padding:0 var(--size-4);}
and thus "breaks" in browsers
Details
Interestingly enough, the other way around works just fine
Summary
When writing a CSS selector that has a CSS Variable (
Function
) that comes after something like anIdentifier
, the resulting CSS is incorrectly optimized with a space missing between theDeclaration
valuesInput
Output
and thus "breaks" in browsers![Screenshot 2024-06-07 at 11 38 29 AM](https://github.com/ProjectEvergreen/greenwood/assets/895923/87a0aa7f-17d6-49ea-b727-cc3b524d4a87)
Details
Interestingly enough, the other way around works just fine
Input
Output