Best use cases for the "lh" unit

Hey, i was wondering what the best use cases for the lh unit are, i see a lot of people use it for spacing and for icon sizes like in this example (https://codepen.io/piccalilli/pen/OJdYxRv), i'd appreciate any insight, thanks in advance.
3 Replies
ἔρως
ἔρως6mo ago
https://piccalil.li/blog/lh-units-are-cool/ it's the line height basically, the best use-case is the one in the example, to avoid that the icon extends past the line height
RAiDeRTuRbO
RAiDeRTuRbO6mo ago
Chris Coyier
CSS-Tricks
lh And rlh Units | CSS-Tricks
There's some new units I was totally unaware of from the Level 4 spec for CSS values! The lh unit is "equal to the computed value of line-height" and rlh is
snxxwyy
snxxwyyOP6mo ago
Ah I see, thank you both, I’ll look into both articles
Want results from more Discord servers?
Add your server