<text-edge>
Limited availability88% of users
A value type used with 'text-box-edge' to define which lines of the font (like the top of capital letters, the x-height or the baseline) should be used as the boundaries for trimming.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick example
.custom-trimmed-box {
text-box-trim: both;
/* Uses the x-height (top of lowercase 'x') and alphabetic baseline as the trim edges */
text-box-edge: ex alphabetic;
}<text-edge> browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage88%of people can use this12% use a browser without it.
Browsers
133+
18.2+
133+Mobile
133+Android
18.2+iOS