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
--css-variable-1: 0
body.has-some-class {
--css-variable-1:25px;
}
.other-class {
top:calc(100vh-var(--css-variable-1)) // When this variable is 0 the calc will be invalid
}
As suggested in https://stylelint.io/user-guide/rules/list/length-zero-no-unit in some case like the usage in CSS variables the unit is necessary for it to work, so it will be nice to add those extra configuration.
Here is an example where this is required:
Doesn't work
Works
The text was updated successfully, but these errors were encountered: