CSS Text BoxExternal Link

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

CSS text-box (and its longhands text-box-trim & text-box-edge) provide the ability to trim extra space over/under text glyphs at the start/end of a block to match specific font-provided metrics. This allows for more precise alignment and positioning of text.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 87.94% of all users can use this feature, 87.94% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support
Behind a Flag