You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently cssnano assumes that calc(var(--myvar)) will always be equal to var(--myvar) but this is not a safe assumption. var() expressions can contain arbitrary numeric expressions, and may need a calc() wrapper in order to be valid. Example:
p {
--fz: (4em/2);
font-size:calc(var(--fz));
}
cssnano will strip this down to the following, which is not valid:
p{--fz:(4em/2);font-size:var(--fz)}
The text was updated successfully, but these errors were encountered:
If you check the following pen you can see that font-size: calc(var(--fz)); works, but font-size:var(--fz); (which is what you get with cssnano's minification) does not:
Currently cssnano assumes that
calc(var(--myvar))
will always be equal tovar(--myvar)
but this is not a safe assumption.var()
expressions can contain arbitrary numeric expressions, and may need acalc()
wrapper in order to be valid. Example:cssnano will strip this down to the following, which is not valid:
The text was updated successfully, but these errors were encountered: