We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I have code like this
.foo { font-size: calc(var(--h) * 1em); margin-top: calc(1.5em / var(--h)); }
it can be minified to
.foo{font-size:calc(var(--h)*1em);margin-top:calc(1.5em/var(--h))}
but it gets minified to
.foo{font-size:calc(var(--h) * 1em);margin-top:calc(1.5em / var(--h))}
So could cssnano remove whitespace around * or / inside calc()?
*
/
calc()
It’s allowed by the spec:
white space is required on both sides of the ‘+’ and ‘-’ operators. (The ‘*’ and ‘/’ operaters can be used without white space around them.)
.foo { --a: calc(var(--x, 1) * 10vw); --b: var(--x, 1); }
it gets minified to
.foo{--a:calc(var(--x, 1) * 10vw);--b:var(--x,1)}
So the space after the comma is not removed inside calc(), but is outside calc().
The text was updated successfully, but these errors were encountered:
Fixed in upstream package.
Sorry, something went wrong.
The second one is not fixed yet!
No branches or pull requests
If I have code like this
it can be minified to
but it gets minified to
So could cssnano remove whitespace around
*
or/
insidecalc()
?It’s allowed by the spec:
If I have code like this
it gets minified to
So the space after the comma is not removed inside
calc()
, but is outsidecalc()
.The text was updated successfully, but these errors were encountered: