Unexpected CSS minify #19284
Unanswered
MeteorsLiu
asked this question in
Help
Replies: 1 comment 4 replies
-
|
This is from Lightning CSS optimization. When you're using vendor prefixes, any prefixed versions should come before the "main" CSS declaration. When you do so, it should work. Furthermore, you don't actually need to add the vendor prefix at all - Lightning CSS would add it for you. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Tailwind CSS are you using?
v4.1.17
What build tool (or framework if it abstracts the build tool) are you using?
Vite: 6.3.5
What version of Node.js are you using?
v25.1.0
What browser are you using?
Firefox 142.0
What operating system are you using?
macOS
Reproduction URL
I wrote my custom CSS class to
styles/globals.cssWhen both -webkit-backdrop-filter and backdrop-filter are present, CSS minification remove backdrop-filter and retain
-webkit-backdrop-filter. However,-webkit-backdrop-filteris not compatible with Firefox causing the effect is not shown as expect.Here's the minified result:
Beta Was this translation helpful? Give feedback.
All reactions