-webkit-text-stroke-color
Widely availableSince 201797% of users
Sets the color of the outline (stroke) around text characters. Best used with a large font size to ensure the text remains readable.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since April 2017.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
currentcolor- Inherited
- Yes
- Applies to
- all elements
- Animation type
- color
Quick example
h1 {
-webkit-text-stroke-color: #7c3aed;
-webkit-text-stroke-width: 2px;
color: transparent;
font-size: 4rem;
}-webkit-text-stroke-color browser support
BaselineWidely availableThis 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.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
49+
3+
15+Mobile
18+Android
49+Android
2+iOS