Line height accepts a bare multiplier (1.5) as well as a length, so it
cannot go through safeLength. That helper rewrites a unitless
number as px, which is exactly the wrong reading here. Unitless values pass
through the general CSS sanitizer and are then range-checked; anything with
a unit falls back to safeLength.
Line height accepts a bare multiplier (
1.5) as well as a length, so it cannot go through safeLength. That helper rewrites a unitless number as px, which is exactly the wrong reading here. Unitless values pass through the general CSS sanitizer and are then range-checked; anything with a unit falls back to safeLength.