The device identifier can only be omitted for lengths from zero. Other units require a device identifier even for zero values. Lengths include em, pxetc. There is some debate about whether it is better to include it or not (see this question and this one ). A minifier will and must remove the device identifier along the length of zero. See the specification here :
for zero length, the device identifier is optional
For lack of length, unit identifiers are required, null or not. If the minifier deletes the device identifier without length, for example, msin the time specified as the property value transition-duration, this is an error in the minifier.
user663031
source
share