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
When running npm run dev the rotate-0 class is compiled as rotate: 0deg.
When running npm run build it is compiled as rotate: none.
These are not equivalent, as 0deg will create a new stacking context but none will not. This causes the order of the divs in reproduction above to be swapped depending on whether you run dev or build.
The text was updated successfully, but these errors were encountered:
ZebraNorth
changed the title
CSS different between "dev" and "build"
"rotate-0" CSS different between "dev" and "build"
May 7, 2025
What version of Tailwind CSS are you using?
v4.1.5
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?
v22.13.1
What browser are you using?
Chrome
What operating system are you using?
Windows
Reproduction URL
https://play.tailwindcss.com/zpabWAazWw
Describe your issue
When running
npm run dev
therotate-0
class is compiled asrotate: 0deg
.When running
npm run build
it is compiled asrotate: none
.These are not equivalent, as
0deg
will create a new stacking context butnone
will not. This causes the order of the divs in reproduction above to be swapped depending on whether you run dev or build.The text was updated successfully, but these errors were encountered: