-
Notifications
You must be signed in to change notification settings - Fork 191
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
-webkit-
prefix removed from backdrop-filter
even though Safari needs it
#537
Comments
I observe the exact opposite behaviour as it is added twice after a build. Source: dialog::backdrop {
opacity: 1;
backdrop-filter: blur(0.125rem);
} Build: dialog::backdrop {
opacity: 1;
-webkit-backdrop-filter: blur(0.125rem);
-webkit-backdrop-filter: blur(0.125rem);
backdrop-filter: blur(0.125rem);
} |
Previously duplicated
|
On the latest version (1.22.0) I now see the following behavior: source:
result:
And source:
result:
So basically the non-prefixed version is removed when I also include the -webkit prefixed one, and the webkit prefixed one is not autimatically added when I have just the non-prefixed one :/ EDIT As a workaround I now downgraded to 1.20.0 as having two -webkit-backdrop-filters is better than having one or having it remove the normal backdrop-filter. Could you maybe look into this though @LeoniePhiline ? EDIT2 It does not happen in the playground so I guess this might have something to do with my default Vite config? I only enabled CSS modules. EDIT3 Nope it definitely seems like a bug when no target is specified, you can check the difference in this playground between 1.22.0 and 1.20.0 |
FWIW, observing the same with |
@brycewray This issue is closed. Try opening a new one, with a repro project and/or link to a repro in the playground. |
Safari doesn't support unprefixed
backdrop-filter
:https://caniuse.com/css-backdrop-filter
Unfortunately, LightningCSS removes the necessary
-webkit-
prefix when both the prefixed and the normal version are used:Playground
Funnily enough, if there's only an unprefixed
backdrop-filter
, it outputs both the prefixed and the unprefixed version:Playground
I would expect both inputs to result in the same output including both the prefixed and unprefixed declaration.
The text was updated successfully, but these errors were encountered: