-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backdrop-filter #564
Comments
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.webmThe demo and tutorial in itself are Chrome-centric, but the reality is that this effect doesn't work in Firefox or Safari due to 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 But And while I haven't had time to go into it, setting Here's a simplified test case for the card demo. Example 2. I recently came across this Dribbble animation. glass-ani.webmTook 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 But both versions set 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 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. |
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. |
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. |
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
https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty
Open Issues
https://github.com/w3c/fxtf-drafts/issues?q=is%3Aissue+is%3Aopen+backdrop-filter
I have not checked the severity of any of the open issues.
Tests
https://wpt.fyi/results/css/filter-effects?label=master&label=experimental&aligned&q=backdrop-filter
Current Implementations
Standards Positions
No response
Browser bug reports
https://bugs.webkit.org/show_bug.cgi?id=224899
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:
Existing Usage
https://chromestatus.com/metrics/css/timeline/popularity/508
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
.The text was updated successfully, but these errors were encountered: