CSS text-box-trim
January 23, 2025
This property lets you control the space above and below text, for example , and . Every font produces a different amount of this block directional space which contributes to the element’s size. This chaotic space contribution is not easily measured, and has been impossible to control until now.The font knows, now CSS knows!
text-box-trim
is a new CSS features that helps with tricky text layout issues we’ve been facing for decades.