3 ms·
I don't really understand what this is doing that margins aren't.
by recursive 2y ago
I don't really understand what this is doing that margins aren't.
- pests 2y agoThis depends on the font and give you options on how the bounding box works. Margins would be error prone, manual, and unreliable.
- alberth 2y agoBetter explanation here https://css-tricks.com/leading-trim-the-future-of-digital-typesetting/ https://css-tricks.com/leading-trim-the-future-of-digital-ty... Note: this use to be called “leading-trim”
- mixmastamyk 2y agoWas hard to understand until they got to the Use Cases section, should have led with that. TLDR: fonts are not vertically centered, but bottom aligned. This feature helps alleviate that by (typically) cutting off the top empty space. Yes, you can sometimes add a little space around the text, but this is a proper solution.