-webkit-text-stroke
Widely availableSince 201797% of users
A shorthand for setting both the thickness and the color of text outlines in one line. Great for creating 'hollow' or 'ghost' text effects.
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
See individual properties- Inherited
- Yes
- Applies to
- all elements
Quick example
h1 {
-webkit-text-stroke: 2px #7c3aed;
color: transparent;
font-size: 5rem;
}-webkit-text-stroke 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
4+
49+
3+
15+Mobile
18+Android
49+Android
2+iOS