Skip to content

Filter utilities not working in old chromium versions #20371

Closed

Description

@francoistomasi

What version of Tailwind CSS are you using?

v4.3.3

What browser are you using?

Chrome/Chromium (v112 & v150)

Reproduction URL

https://play.tailwindcss.com/u7h2BGRLEb

Describe your issue

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.

Chromium v112

Image Image

Chromium v150

Image Image

Activity

  1. RobinMalfait commented on Jul 31, 2026

    @RobinMalfait
    Contributor

    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:

    Image Image

    (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.

  2. self-assigned this
    on Jul 31, 2026
  3. RobinMalfait commented on Jul 31, 2026

    @RobinMalfait
    Contributor

    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:

    npm install tailwindcss@insiders @tailwindcss/cli@insiders

    PostCSS:

    npm install tailwindcss@insiders @tailwindcss/postcss@insiders

    Vite:

    npm install tailwindcss@insiders @tailwindcss/vite@insiders

    webpack:

    npm install tailwindcss@insiders @tailwindcss/webpack@insiders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions