background-clip: text works unprefixed in Chrome 120+, Edge 120+, Firefox 49+, Safari 15.5+, Opera 106+, and Samsung Internet 25+. See full browser support.

Prince Dewani
May 6, 2026
On This Page
background-clip: text is a W3C CSS Backgrounds Module Level 4 value that clips an element's background to the shape of its rendered text. It works unprefixed in Chrome 120+, Edge 120+, Firefox 49+, Safari 15.5+, Opera 106+, and Samsung Internet 25+, with -webkit-background-clip: text as the alias from Chrome 4, while Internet Explorer never added support.
This guide covers what background-clip: text is, the browsers that support it, how to use it with gradients, the common pitfalls, and a fallback strategy.
background-clip: text is the keyword value of the CSS background-clip property that paints an element's background image, gradient, or color only behind the rendered text. The W3C defines it in CSS Backgrounds and Borders Module Level 4. Authors typically pair it with -webkit-text-fill-color: transparent so the background shows through the glyphs.
background-clip: text ships in every modern engine, but the path to unprefixed support was uneven. Most browsers honored only -webkit-background-clip: text for years, and Chromium dropped the prefix only in Chrome 120. Internet Explorer never shipped either form.
Chrome supports background-clip: text unprefixed from Chrome 120 on Windows, macOS, Linux, ChromeOS, and Android. Chrome 4 to 119 supported only the -webkit-background-clip: text alias, which still works in current Chrome as an alias for the unprefixed property.
Microsoft Edge supports background-clip: text unprefixed from Edge 120 on Windows, macOS, and Linux through the Chromium engine. Chromium-based Edge 79 to 119 honored only -webkit-background-clip: text, and Edge Legacy 12 to 18 also accepted the prefixed form through EdgeHTML.
Firefox supports background-clip: text from Firefox 49 on Windows, macOS, Linux, and Android. Firefox also treats -webkit-background-clip: text as an alias for the unprefixed property, so either declaration works. Firefox 2 to 48 did not support either form.
Safari supports the -webkit-background-clip: text alias from Safari 4 on macOS and Safari 3.2 on iOS and iPadOS. The unprefixed background-clip: text works from Safari 15.5 on macOS, iOS, and iPadOS. Safari 3.1 and earlier on macOS did not support either form.
Opera supports background-clip: text unprefixed from Opera 106 on Windows, macOS, and Linux through its Blink engine. Opera 15 to 105 honored only -webkit-background-clip: text. Opera Mobile picks up unprefixed support from the matching Chromium build, and Opera 9 to 12.1 dropped the declaration as unrecognized syntax.
Samsung Internet supports background-clip: text unprefixed from Samsung Internet 25 on Galaxy phones and tablets. Samsung Internet 4 to 24 honored only the -webkit-background-clip: text alias, which still works in current builds as a fallback for older devices.
Modern Chrome for Android supports background-clip: text unprefixed from Chrome 120, and the legacy stock Android Browser supports the -webkit-background-clip: text alias from Android Browser 4. Android Browser 2.1 to 3 did not support either form.
Internet Explorer 5.5 through Internet Explorer 11 never supported background-clip: text in either form. Microsoft has retired Internet Explorer, so any legacy intranet page that needs a gradient text effect has to fall back to a flat foreground color, an SVG text element, or a pre-rendered image asset.
Note: background-clip: text behaves differently across Safari prefix builds, older Chromium versions, and Firefox alias handling. Test it on real browsers and OS with TestMu AI. Try TestMu AI free!
A gradient text effect needs four declarations on the same element: a background, the prefixed and unprefixed background-clip values, and a transparent foreground. The browser paints the gradient behind the glyphs and clips it to the text outline.
/* 1. Gradient text. The transparent foreground lets the clipped gradient show through. */
.gradient-headline {
background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
/* 2. Image-filled text. Works the same way with a raster background. */
.image-headline {
background: url("/static/hero-pattern.jpg") center / cover no-repeat;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
}
/* 3. Animated gradient text. Slide the background to make the gradient drift across the glyphs. */
.animated-headline {
background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ff6b6b);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
animation: drift 6s linear infinite;
}
@keyframes drift {
from { background-position: 0% 0%; }
to { background-position: 200% 0%; }
}
/* 4. Accessible fallback. Solid color when the engine cannot clip to text. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
.gradient-headline,
.image-headline,
.animated-headline {
background: none;
color: #1a73e8;
}
}background-clip: text works on every modern engine, but a handful of quirks still make the effect silently fail in production. Most pitfalls trace back to the transparent foreground, the -webkit- prefix, parent stacking contexts, and accessibility regressions.
In my experience, the trap that bites teams hardest is shipping background-clip: text on a button label, watching it work in Chrome and Firefox during development, then seeing the entire button text vanish on iPhones because Safari treats the form control's foreground specially.
A fallback matters for Internet Explorer, very old Android WebViews, and any browser that disables background-image. Use the @supports rule to feature-detect background-clip: text and ship a solid foreground color when the engine cannot clip a background to glyphs.
All background-clip: text version numbers and platform notes in this guide come from these primary sources:
Did you find this page helpful?
More Related Hubs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance