Repository navigation
Description
Description
backdrop-filter can be used to apply a filter effect to the underlying elements. The most common effect is probably a blur effect, as in this example from MDN:
Specification
Open Issues
I have not checked the severity of any of the open issues.
Tests
Current Implementations
- Blink
- Gecko
- WebKit
Standards Positions
No response
Browser bug reports
Developer discussions
No response
Polls & Surveys
backdrop-filter has showed up in State of CSS in the past, and again in 2023. It's never the top issue, but keeps making an appearance.
Per https://2023.stateofcss.com/en-US/features/shapes-and-graphics/#backdrop_filter awareness is increasing.
Per https://2023.stateofcss.com/en-US/usage/#css_interoperability_features it's a bigger pain point than color functions and math functions. (Note Devographics/Monorepo#324, this wasn't a freeform question even though the site currently says so.)
Quoting from #210 about earlier surveys:
In State of CSS 2021,
backdrop-filterwas the 6th most common answer to the free-form question “Are there any CSS features you have difficulties using because of differences between browsers?”
Adding to the rationale,
backdrop-filterwas a common responses the State of CSS 2022 question about browser incompatibilities, mentioned in ~3% of responses, see #248.Representative examples are "Inconsistent backdrop-filter" and "backdrop-filter can be a pain!"
In the MDN short survey on CSS & HTML, "CSS
backdrop-filterproperty" was selected by ~21% of survey takers, putting it in the top third of the 20 options. (There is some uncertainty as with any survey data.)
Existing Usage
Workarounds
No response
Accessibility Impact
No response
Privacy Impact
No response
Other
This is a resubmission of #210 from Interop 2023 planning.
This is one of few properties that still require a prefix, namely -webkit-backdrop-filter.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone

Activity
thebabydino commentedon Oct 12, 2023
This is often used for glassmorphism effects.
These can get pretty tricky for text/ other non-rectangular shapes (detailed in this article I wrote a couple of years back on getting such an effect for emoji icons).
But even simpler effects using rectangles that maybe have rounded corners can be problematic due to browser bugs/ inconsistencies.
Example 1. Consider this glassmorphic credit card effect.
glass-card.webm
The demo and tutorial in itself are Chrome-centric, but the reality is that this effect doesn't work in Firefox or Safari due to
backdrop-filterbugs.This effect requires a parent card with a front face child and a back face child. The back face child needs to be rotated by
.5turnaround its y axis and the parent needs to havetransform-style: preserve-3d.But
preserve-3don the parent breaks thebackdrop-filtereffect in Firefox - bug 1816561.And while I haven't had time to go into it, setting
backdrop-filteron the faces of such an assembly makes the whole thing disappear altogether in Safari (tested via Epiphany).Here's a simplified test case for the card demo.
Example 2. I recently came across this Dribbble animation.
glass-ani.webm
Took me only a few minutes to get a working version in Chrome and then expanded it into a second version that works without animating custom properties registered via
@propertyin order to extend support.But both versions set
transform-style: preserve-3don the system parent so that when the two shapes orbiting the glass pass in front of it or behind, they are all in the correct order along the z axis. This means we hit the same bug as before in Firefox.We can remove this property from the system parent, but this means we lose the out of the box 3D and we have to emulate it by switching
z-indexvalues at various points during the animation. Not ideal.Safari does something even weirder here (tested via Epiphany) - it correctly blurs the shape passing behind the glass, but it also incorrectly creates a glow/ blur around the shape passing in front of the glass.
Example 3. Glassy cubes like in this Dribbble animation or even intersecting ones. This is one experiment I haven't found the time to get too far with.
flackr commentedon Oct 24, 2023
Would we be able to resolve on the behavior proposed in w3c/fxtf-drafts#374 as well? The current mirror edgemode leads to flickering when backdrop blur content is moving over new colors.
jgraham commentedon Feb 1, 2024
Thank you for proposing backdrop-filter for inclusion in Interop 2024.
We wanted to let you know that this proposal was not selected to be part of Interop this year.
We did not have consensus to include this proposal. This should not be taken as a comment on the technology as a whole
For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2024!
Posted on behalf of the Interop team.