Carmen Ansio explains why text sits in a box taller than its letters and how text-box trims it, so padding is measured from the glyphs, like in Figma. The trim-both cap alphabetic value fits buttons and headings, while ex alphabetic suits lowercase labels. Demos cover line-height, font swaps, and accents that rise above the cap edge. It’s been newly available in all browsers since August 2026.
Trimming the air above a capital letter
