CSS text-decoration-line Property Reference

The CSS text-decoration-line property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.

CSS text-decoration-line Property Reference

The CSS text-decoration-line property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

text-decoration-line overview

The CSS text-decoration-line 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

text-decoration-line formal syntax
FieldValue
Formal syntaxnone | [ underline || overline || line-through || blink ] | spelling-error | grammar-error
Initial valuenone
Applies toallElements
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediavisual
Specification groupCSS Text Decoration
StatusStandard

Practical examples

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

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

Description

The CSS text-decoration-line property is a standard property in CSS Text Decoration. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: text-decoration-line
  2. MDN: CSS Properties Reference

Similar or alternative tools

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