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
the negative rotate does not work with the new variable syntax (-rotate-(--myvar))). It generated the same code as the positive variant rotate-(--myvar)).
❌ -rotate-(--myvar) generates rotate: var(--myvar);, but should generate rotate: calc(var(--myvar) * -1);
Is that a bug or intentional behaviour?
Side note:
-rotate-z-(--myvar) works as expected. I will use it as a workaround for now.
However it does not use rotate, but transform: rotate() instead. Is there a reason for this difference? Just asking because translate-* and translate-x-* both use the new translate property instead of transform.
The text was updated successfully, but these errors were encountered:
What version of Tailwind CSS are you using?
v4.1.6
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?
For example: v20.10.0
What browser are you using?
N.A.
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/XIDXFoclli
Describe your issue
the negative rotate does not work with the new variable syntax (
-rotate-(--myvar))
). It generated the same code as the positive variantrotate-(--myvar))
.Example:
rotate-20
generatesrotate: 20deg;
-rotate-20
generatesrotate: -20deg;
rotate-(--myvar)
generatesrotate: var(--myvar);
-rotate-(--myvar)
generatesrotate: var(--myvar);
, but should generaterotate: calc(var(--myvar) * -1);
Is that a bug or intentional behaviour?
Side note:
-rotate-z-(--myvar)
works as expected. I will use it as a workaround for now.However it does not use
rotate
, buttransform: rotate()
instead. Is there a reason for this difference? Just asking becausetranslate-*
andtranslate-x-*
both use the newtranslate
property instead oftransform
.The text was updated successfully, but these errors were encountered: