Trimming the air above a capital letter

Title “Trimming the air above a capital letter”, proof cards with “Type”, “Über typography”, and “Set in lead.” marked with red metric lines, and Carmen Ansio with crossed arms.

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.

carmenansio.com/articles/text-box-trim