Disallow units for zero lengths.
Lengths refer to distance measurements. A length is a dimension, which is a number immediately followed by a unit identifier. However, for zero lengths the unit identifier is optional. The length units are:
This rule ignores lengths within math functions (e.g.
calc) in favor of the
fix option can automatically fix all of the problems reported by this rule.
The following patterns are considered violations:
The following patterns are not considered violations:
Ignore units for zero length in custom properties.
The following pattern is not considered a violation: