CSS text-shadow Property Reference

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

CSS text-shadow Property Reference

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

Updated 2026-08-12

text-shadow overview

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

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

text-shadow formal syntax
FieldValue
Formal syntaxnone | <shadow-t>#
Initial valuenone
Applies toallElements
InheritedYes
Percentagesno
Computed valuecolorPlusThreeAbsoluteLengths
Animation typeshadowList
Mediavisual
Specification groupCSS Text Decoration
StatusStandard

Practical examples

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

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

Related references

Description

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

References

  1. MDN: text-shadow
  2. MDN: CSS Properties Reference

Similar or alternative tools

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