v149 · CSS
Trim Playground
Explore every text-box-trim value. The blue background makes the element box and trimmed leading directly visible. Generated CSS updates live.
Feature detection: checking…
text-box-trim
text-box-edge (start)
text-box-edge (end)
font-size: 2rem
Preview (blue box = element boundary)
Typography
Generated CSS
text-box: none;
see also
- Trim Basics — side-by-side comparison
- Icon Alignment — practical use case
- Heading Flush Against a Box — design patterns
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗