[!WARNING]
This may break existing usages of the property, so proceed with caution
Currently, line-height interprets unitless int and float values as px. This is undesirable as there is also the unitless lineHeight property which is not available in the current overload structure.
Currently, line-height interprets unitless
int
andfloat
values aspx
. This is undesirable as there is also the unitless lineHeight property which is not available in the current overload structure.This is especially bad since the unitless approach should be preferred whenever possible. (As per MDN https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)
This proposed change removes the
px
from the existing overloads and adds additional documentation to the changed properties.