-webkit-text-stroke-color
Sets the color of the outline (stroke) around text characters. Best used with a large font size to ensure the text remains readable.
Quick example
h1 {
-webkit-text-stroke-color: #7c3aed;
-webkit-text-stroke-width: 2px;
color: transparent;
font-size: 4rem;
} Quick facts
Initial value
currentcolorInherited
Yes
Applies to
all elements
Animation type
color
-webkit-text-stroke-color Browser Support
Widely available Since 2017 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.
Safe to use without fallbacks.
1+
49+
3+
15+