lightningcss icon indicating copy to clipboard operation
lightningcss copied to clipboard

Double whitespace after var() and before +/- operator inside calc() with disabled minification

Open egeesin opened this issue 2 years ago • 1 comments

Tried to reproduce that in the Playground as seen in the image below: image Disabled "Minify" and chose the latest version (1.22.1).

egeesin avatar Dec 10 '23 14:12 egeesin

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

egeesin avatar Nov 27 '25 09:11 egeesin