Web platform features explorer

text-box

The text-box CSS property sets the spacing above and below text based on a font's typographic features. For example, text-box: trim-both ex alphabetic trims the top to the top of the letter x and the bottom to the bottom of most letters, without descenders.

Status

Limited availability

MDN documentation

Browser support (view on caniuse.com)

  • Chrome 133 Released on 2025-02-04
  • Chrome Android 133 Released on 2025-02-04
  • Edge 133 Released on 2025-02-06
  • Firefox See bugzil.la/1816038 bugzil.la/1977183
  • Firefox for Android
  • Safari 18.2 Released on 2024-12-11
  • Safari on iOS 18.2 Released on 2024-12-11

Baseline availability blocked since February 2025 by Firefox (12 months)

Usage (according to Chrome Platform Status)

~0.824% of page loads. More data at chromestatus.com.

Developer votes

Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.