-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Duplicated css declarations #3292
Comments
The duplicate rule that you don’t want is being automatically generated for you because of the |
Thanks for your quick response! Deleting "-webkit-backdrop-filter" is acceptable if its value is exactly the same as for backdrop-filter. body {
backdrop-filter: blur(30px);
-webkit-backdrop-filter: blur(45px);
} esbuild produce: body {
-webkit-backdrop-filter: blur(30px);
backdrop-filter: blur(30px);
-webkit-backdrop-filter: blur(45px);
} Also if we use an external library which already includes both "backdrop-filter" and "-webkit-backdrop-filter" it will be difficult to manipulate library's generated css to meet esbuild requirements. Maybe we need a new build option for esbuild to change this behaviour ? |
One reason to keep both the automatically-generated one and the manually-written one in the case where the values are different is if the value manually-written one is not understood by the browser. In that case the browser would fall back to the automatically-generated one. However, Autoprefixer appears to never automatically generate one even in this case, so perhaps esbuild should do this too to match people's expectations. |
current css output
desired css output
tested with 0.18.17 and 0.18.18
The text was updated successfully, but these errors were encountered: