← Back to release summary

CSS text-box, text-box-trim, and text-box-edge

Category
CSS
Type
Chromium catches up
Status
Enabled by default (Chrome 133)
Intent stage
None

Summary

To achieve optical balance of text content, the text-box-trim and text-box-edge properties, along with the text-box shorthand property, make finer control of vertical alignment of text possible. The text-box-trim property specifies the sides to trim, above or below, and the text-box-edge property specifies how the edge should be trimmed. These properties allow developers to control vertical spacing precisely by using the font metrics. Note that the `ideographic` and `ideographic-ink`, two values for the text-box-edge property for CJK, are deferred to future releases due to open issues currently under discussion.

Standards & signals

View on chromestatus.com