I tried a simple demo where I gave colors to elements in hsl . From all my experience I know that 0 (ZERO) in CSS without units. If you want to specify 0 as a value, you can leave the device.
This, however, is not like hsl / hsla . In both Chrome and Firefox, this results in an invalid property value .
The tangentially related question was this, but it contains the answer that zero should be singular, referring to spec.
Any error with hsla (0, 0%, 0%, 0), becoming hsla (0, 0, 0, 0)? (missing percent sign)
hsl(0,0,0) // error hsl(0,0%,0) // error hsl(0,0,0%) // error
Is it specifically designed to work with units near zero? Are there any other properties like this when a zero unit is mandatory?
source share