clagnut / webtypography

The source code for WebTypography.net, a practical guide to web typography.
WebTypography.net
Other
827 stars 120 forks source link

Line-height isn’t unique in this respect. #26

Closed infinnie closed 5 years ago

infinnie commented 7 years ago

a unique characteristic of the line-height property: it is the only CSS property for which non-zero numeric values are allowed without units.

The line-height property isn’t alone in this respect: z-index, flex-grow, flex-shrink and many other properties all support numeric values without units.

Also, line-height: 0 is valid in CSS.

clagnut commented 7 years ago

Ah, tis true now. Care to branch and fix?

bakert commented 5 years ago

I fixed this in #29