-webkit-text-stroke-width
Widely availableSince 201797% of users
Defines how thick the outline (stroke) around text characters should be. Keep it subtle (1-2px) to prevent the text from looking distorted.
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
0- Inherited
- Yes
- Applies to
- all elements
- Animation type
- discrete
Quick example
h1 {
-webkit-text-stroke-width: 1.5px;
-webkit-text-stroke-color: #333;
font-size: 3rem;
}-webkit-text-stroke-width 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