You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filter utilities not working in old chromium versions #20371
For a project that is pinned to Chromium 112 (the last version supported on Ubuntu 18), I noticed that the filter utility does not work.
In my example, I'm using the grayscale filter, but the same issue occurs with all filter utilities.
Based on my investigation, older versions of Chromium do not apply the CSS filter property unless all filter variables are defined. As a result, the generated CSS does not work correctly on Chromium 112.
Once you do that, you should get the correct output:
(These are tested on macOS via Browserstack, but I can reproduce the development based issue)
If you're using the @tailwindcss/cli, then you can use the --optimize flag, or the --minimize flag (which performs optimization + minification).
If you're using PostCSS, then we look at the optimize flag passed in, or look at the NODE_ENV being set to 'production'.
If you're using Vite, then vite build should take care of that as well.
The issue is not that the variables are not defined (it's expected in this case), but it's the way the older Chromium version handles fallback values that are "empty". So var(--tw-blur,) is valid, the , is not a bug, it means that the fallback value is just nothing.
While this is valid according to the spec, older Chromium versions expect at least a space var(--tw-blur, ) which Lightning CSS in a production build will add.
This should be fixed by #20373, and will be available in the next release. If you open the https://play.tailwindcss.com/u7h2BGRLEb link and in the version dropdown on the top right and switch to insiders then you should see the difference as well.
You can already try it by using the insiders build:
CLI:
Activity
RobinMalfait commentedon Jul 31, 2026
Hey! Have you tried using a production build as well? Our compatibility matrix (https://tailwindcss.com/docs/compatibility#browser-support) requires you to perform a production build such that Lightning CSS can be used.
Once you do that, you should get the correct output:
(These are tested on macOS via Browserstack, but I can reproduce the development based issue)
If you're using the
@tailwindcss/cli, then you can use the--optimizeflag, or the--minimizeflag (which performs optimization + minification).If you're using PostCSS, then we look at the
optimizeflag passed in, or look at theNODE_ENVbeing set to'production'.If you're using Vite, then
vite buildshould take care of that as well.The issue is not that the variables are not defined (it's expected in this case), but it's the way the older Chromium version handles fallback values that are "empty". So
var(--tw-blur,)is valid, the,is not a bug, it means that the fallback value is just nothing.While this is valid according to the spec, older Chromium versions expect at least a space
var(--tw-blur, )which Lightning CSS in a production build will add.RobinMalfait commentedon Jul 31, 2026
This should be fixed by #20373, and will be available in the next release. If you open the https://play.tailwindcss.com/u7h2BGRLEb link and in the version dropdown on the top right and switch to
insidersthen you should see the difference as well.You can already try it by using the insiders build:
CLI:
PostCSS:
Vite:
webpack: