Text stroke and fill (compatibility prefixes)
Widely available since 2019-10-05
The -webkit-text-stroke-width
and -webkit-text-stroke-color
CSS properties set the thickness and color of text outlines. The -webkit-text-fill-color
sets the color within text character outlines. Both default to the text color.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 4 Released on 2010-01-25
- Chrome Android 18 Released on 2012-06-27
- Edge 15 Released on 2017-04-05
- Firefox 49 Released on 2016-09-20
- Firefox for Android 49 Released on 2016-09-20
- Safari 3 Released on 2007-10-26
- Safari on iOS 2 Released on 2008-07-11
Specifications
- Compatibility (#text-fill-and-stroking), from Compatibility Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature