Path: blob/main/files/en-us/web/css/-webkit-text-stroke/index.md
6532 views
------{{CSSRef}}
The -webkit-text-stroke CSS property specifies the width and color of strokes for text characters. This is a shorthand property for the longhand properties {{cssxref("-webkit-text-stroke-width")}} and {{cssxref("-webkit-text-stroke-color")}}.
Constituent properties
This property is a shorthand for the following CSS properties:
Syntax
Values
{{cssxref("<length>")}}
: The width of the stroke.
{{cssxref("<color>")}}
: The color of the stroke.
Formal definition
{{CSSInfo}}
Formal syntax
{{csssyntax}}
Examples
Adding a red text stroke
HTML
CSS
Result
{{EmbedLiveSample("Adding_a_red_text_stroke", 600, 60)}}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{cssxref("-webkit-text-stroke-width")}}
{{cssxref("-webkit-text-stroke-color")}}
{{cssxref("-webkit-text-fill-color")}}