Skip to content
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

css.properties.backdrop-filter - There is no full support in Safari 18. We still need -webkit- prefix, and we can't use CSS variables. #25914

Open
ADTC opened this issue Feb 13, 2025 · 1 comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS info needed This needs more information to review or act on.

Comments

@ADTC
Copy link

ADTC commented Feb 13, 2025

What type of issue is this?

Incorrect support data (example: BrowserX says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

MDN states that there's full support in Safari 18 for backdrop-filter. This is incorrect. We still need -webkit- prefix. Also, CSS variables do not work on -webkit-backdrop-filter in Safari. It will only accept fixed values.

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

Support should indicate the vendor prefix, and Known issues should state that CSS variables do not work in Safari for -webkit-backdrop-filter.

Did you test this? If so, how?

I tested with Safari Desktop (macOS) Version 18.3 (19620.2.4.111.8, 19620) by using ONLY backdrop-filter and it didn't work.

Note: The example on this page (News from WWDC24: WebKit in Safari 18 beta | WebKit) is incorrect and very misleading. Load the CodePen in Safari, then disable the -webkit- prefixed CSS that's hiding towards the end of the CSS file. You'll notice it stops working completely.

Also, while -webkit-backdrop-filter works, it only does so with fixed values like blur(5px). If I use CSS variables, it doesn't work even if the variable resolves to a valid value or a valid fallback value.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#browser_compatibility

https://caniuse.com/css-backdrop-filter

Do you have anything more you want to share?

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter

MDN metadata

MDN page report details
  • Query: css.properties.backdrop-filter
  • Report started: 2025-02-13T17:16:33.478Z
@ADTC ADTC added the needs triage This issue needs to be confirmed label Feb 13, 2025
@github-actions github-actions bot added the data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS label Feb 13, 2025
@ADTC ADTC changed the title css.properties.backdrop-filter - There is no full support in Safari 18. We still need -webkit- prefix. css.properties.backdrop-filter - There is no full support in Safari 18. We still need -webkit- prefix, and we can't use CSS variables. Feb 13, 2025
@caugner
Copy link
Contributor

caugner commented Feb 18, 2025

@ADTC Can you please provide a minimal example to reproduce the issue, ideally using MDN Playground?

The data was updated in #23367, and I just verified that the collector test is still passing in Safari 18.3, because CSS.supports("backdrop-filter", "inherit") returns true in Safari 18.

Edit: I was able to use a CSS variable inside backdrop-filter, see this Playground.

@caugner caugner added info needed This needs more information to review or act on. and removed needs triage This issue needs to be confirmed labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS info needed This needs more information to review or act on.
Projects
None yet
Development

No branches or pull requests

2 participants