---
id: "text-box"
kind: "web-feature"
canonical: "https://timetostable.com/feature/text-box"
baseline: "limited"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# text-box (`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.

- **Group**: Text
- **Baseline**: Limited Availability
- **Specification**: https://drafts.csswg.org/css-inline-3/#leading-trim
- **Constituent BCD keys**: 14

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Safari | 18.2 | 2024-12-11 |
| Safari on iOS | 18.2 | 2024-12-11 |
| Chrome | 133 | 2025-02-04 |
| Chrome Android | 133 | 2025-02-04 |
| Edge | 133 | 2025-02-06 |

