backdrop-filter is the CSS property that makes frosted glass possible. For years it was a “Safari only” curiosity. Today it runs in every major browser, with one small wrinkle and a couple of gotchas worth knowing. Here is where things stand as we write, and a pattern that keeps your design intact wherever it loads.
What it does
backdrop-filter applies a filter to whatever is painted behind an element. Compare that with filter, which affects the element itself and its children. For glass, we blur the backdrop and leave the content sharp.
.glass {
background: rgba(255, 255, 255, 0.15);
-webkit-backdrop-filter: blur(12px) saturate(140%);
backdrop-filter: blur(12px) saturate(140%);
}The element needs a transparent or semi-transparent background. If it is fully opaque, there is nothing to see through.
Support at a glance
| Browser | Supported since | Prefix |
|---|---|---|
| Safari (macOS and iOS) | Version 9, in 2015 | -webkit- required until version 18; unprefixed from 18 |
| Chrome and Android Chrome | Version 76, in 2019 | None |
| Edge | Version 79 (Chromium) | None |
| Firefox | Version 103, in 2022 | None |
| Samsung Internet, Opera | Follow Chromium | None |
In practice, well over nine in ten visitors have a browser that supports it. Check a compatibility table for the exact figure on the day you ship.
Do I still need the prefix?
Yes. Plenty of people are on Safari versions before 18, especially on older iPhones and iPads that cannot update. The prefixed line costs you nothing. Write both, prefixed first:
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);Build tools such as Autoprefixer can add it for you, depending on your browser targets. Our generator always includes it.
A fallback that never breaks
Where blur is missing, a 15 percent white panel over a busy background leaves text unreadable. Give those browsers a more solid surface:
.glass {
background: rgba(255, 255, 255, 0.15);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(1px)) or
(-webkit-backdrop-filter: blur(1px))) {
.glass {
background: rgba(40, 40, 60, 0.9);
}
}The @supports not block only applies when neither form is understood. Testing both matters: a check for the unprefixed property alone would wrongly trigger the fallback in older Safari, which supports the prefixed version perfectly well.
Gotchas
- Nothing behind, nothing to blur. The effect only shows over content that is actually painted beneath the element. A glass card on a plain white page looks like a grey box.
- Ancestors can cut it off. If a parent has its own
filter,opacitybelow 1,maskor similar, it becomes the “backdrop root”, and the blur only sees content inside that parent. - Nested glass. A blurred element inside another blurred element often does not blur the outer one’s backdrop the way you expect. Keep glass layers as siblings, not parent and child.
- Edges. Blur samples beyond the element’s edge. Near the border of the page you may see slight lightening or darkening.
- Borders and radius. The blur follows
border-radius, but clip-path support for it is less consistent. Stick with radius. - Printing. Most browsers drop backdrop effects in print. Provide a print style with a solid background.
Filters you can use
Any filter function works: blur(), saturate(), brightness(), contrast(), grayscale(), hue-rotate(), invert(), sepia(). For glass, the useful trio is:
blur(8px–20px)for the frost.saturate(120%–180%)to stop blurred colours going dull.brightness(90%–110%)to darken or lift the backdrop slightly.
Respecting preferences
Some people find translucency distracting or hard to read. Operating systems offer a “reduce transparency” switch, and CSS exposes it through a media query in supporting browsers:
@media (prefers-reduced-transparency: reduce) {
.glass {
-webkit-backdrop-filter: none;
backdrop-filter: none;
background: rgba(40, 40, 60, 0.95);
}
}Support for this query is still arriving, so treat it as an enhancement. It costs three lines and helps real people.
Performance notes
Backdrop blur is GPU work. A handful of panels is fine on nearly anything. Large, animated or stacked blurs are where phones start to struggle. Keep radii moderate, avoid animating the blur value itself, and test on a mid-range Android device. Full guidance in blur effects and GPU performance.
How to test
- Open your page in Chrome, Firefox and Safari.
- In developer tools, temporarily delete the
backdrop-filterlines to preview how the page reads without blur. - Check an older iPhone if you can borrow one, or use a browser testing service.
- Put your text over the lightest and darkest parts of the background and confirm it is readable in both.
What about email and embedded views?
Email clients largely ignore backdrop filters. In-app browsers on phones use the system engine, so they generally behave like Safari on iOS and Chrome on Android. Always include the fallback.
The short version
Use backdrop-filter with confidence. Write the -webkit- line first, add an @supports not fallback that tests both forms, keep text readable without blur, and honour reduced-transparency where you can. Or let the generator write all of that for you.
Bookmark a compatibility table and glance at it once or twice a year. Support only moves in one direction, and the day you can drop the prefix will arrive quietly.
FAQ
In current versions of Chrome, Edge, Firefox and Safari, yes. Older Safari needs the -webkit- prefix.
Yes, for Safari versions before 18, which are still in use on older devices.
Common causes are an opaque background on the element, nothing painted behind it, or a parent with filter or opacity that isolates the backdrop.