punkave / stylelint-config-punkave

0 stars 0 forks source link

Add rule for line-height #20

Closed bgantick closed 7 years ago

bgantick commented 7 years ago

The recommended method for defining line height is using a number value, referred to as a "unitless" line height. A number value can be any number, including a decimal-based number, as is used in the first code example on this page.

Unitless line heights are recommended due to the fact that child elements will inherit the raw number value, rather than the computed value. With this, child elements can compute their line heights based on their computed font size, rather than inheriting an arbitrary value from a parent that is more likely to need overriding.

Source: https://css-tricks.com/almanac/properties/l/line-height/

austinstarin commented 7 years ago

Thanks b!