Skip to content

[v4] @tailwindcss/postcss - transpilation either doesn't work or the output is not the same as with Autoprefixer #15160

@HummingMind

Description

@HummingMind

What version of Tailwind CSS are you using?

4.0.0-beta.2

What build tool (or framework if it abstracts the build tool) are you using?

vite 5.4.11

What version of Node.js are you using?

v22.11.0

What browser are you using?

Chrome 131.0.6778.86

What operating system are you using?

Windows 11 24H2

Describe your issue

When the @tailwindcss/postcss plugin is used, without explicitely using Autoprefixer, the transpilation output is not the same as when autoprefixer is added back in. I tried definiting the browserslist rules via the package.json key or via the .browserslistrc file and both work with autoprefixer, but neither one seems to work with the @tailwindcss/postcss plugin alone.

I am using this to test:

image

Here are the browserslist rules:

image

Here is the correct output if I explicitely add Autoprefixer back in:

image

Here is the output if I remove Autoprefixer, as the new beta docs say:

image

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions