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
{{ message }}
Repository navigation
[css-less-sass] css.lint.zeroUnits warns "No unit for zero needed" inside calc function #46997
Set "css.lint.zeroUnits": "warning" in settings.json
Create CSS rule with calc function to produce a negative pixel value e.g. top: calc(0px - 10vw)
VS Code suggests that you can remove the px unit
The px unit is needed to coerce the result into a pixel value. Suggest ignore/drop warning for 0+value within calc functions.
Guessing will also affect LESS or SASS usage of calc even with escaping or interpolation.
Activity