CSS text-box-trim Property Reference

The CSS text-box-trim property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

CSS text-box-trim Property Reference

The CSS text-box-trim property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

text-box-trim overview

The CSS text-box-trim property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

text-box-trim formal syntax
FieldValue
Formal syntaxnone | trim-start | trim-end | trim-both
Initial valuenone
Applies toblockContainersAndInlineBoxes
InheritedNo
Percentagesno
Computed valuetheSpecifiedKeyword
Animation typediscrete
Mediavisual
Specification groupCSS Inline
StatusStandard

Practical examples

These declarations demonstrate valid ways to set text-box-trim. The initial and inherit global keywords remain available even when a property-specific value is preferable.

text-box-trim live example
CSS .reset-example { text-box-trim: initial; } .inherit-example { text-box-trim: inherit; } @supports (text-box-trim: initial) { .supported { text-box-trim: initial; } }

Description

The CSS text-box-trim property is a standard property in CSS Inline. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: text-box-trim
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies