CSS text-decoration-inset Property Reference
The CSS text-decoration-inset property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
text-decoration-inset overview
The CSS text-decoration-inset property is a standard property in CSS Text Decoration. 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
| Field | Value |
|---|---|
| Formal syntax | <length>{1,2} | auto |
| Initial value | 0 |
| Applies to | allElements |
| Inherited | No |
| Percentages | no |
| Computed value | absoluteLengthOrKeyword |
| Animation type | byComputedValue |
| Media | visual |
| Specification group | CSS Text Decoration |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set text-decoration-inset. The initial and inherit global keywords remain available even when a property-specific value is preferable.
.reset-example {
text-decoration-inset: initial;
}
.inherit-example {
text-decoration-inset: inherit;
}
@supports (text-decoration-inset: initial) {
.supported {
text-decoration-inset: initial;
}
}