lightningcss
lightningcss copied to clipboard
Double whitespace after var() and before +/- operator inside calc() with disabled minification
Tried to reproduce that in the Playground as seen in the image below:
Disabled "Minify" and chose the latest version (1.22.1).
Wanted to check after awhile and the issue still persists in 1.30.2.
:root{
--test: 7px;
}
.test{
width: calc(var(--test) + 2px);
width: calc(2px + var(--test));
width: calc(var(--test) - 2px);
width: calc(2px - var(--test));
}
Related playground link with snippet included + disabled minify + Version 1.30.2 selected