-webkit-text-fill-color
Widely availableSince 201697% of users
Sets the color for the inside of text characters. It's almost always used alongside 'background-clip: text' and a transparent 'color' to create text with image backgrounds or gradients.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassicIt has worked everywhere since September 2016.
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 {
background: linear-gradient(to right, #7c3aed, #ec4899);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 3rem;
}-webkit-text-fill-color browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2016.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
49+
3+
12+Mobile
18+Android
49+Android
2+iOS