Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

important option doesn't affect arbitrary properties #13351

Closed
benface opened this issue Mar 25, 2024 · 1 comment
Closed

important option doesn't affect arbitrary properties #13351

benface opened this issue Mar 25, 2024 · 1 comment
Assignees

Comments

@benface
Copy link
Contributor

benface commented Mar 25, 2024

What version of Tailwind CSS are you using?

For example: v3.4.1

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

Tailwind Play

What version of Node.js are you using?

Tailwind Play

What browser are you using?

Safari

What operating system are you using?

macOS

Reproduction URL

https://play.tailwindcss.com/ZnkOJe6wYV

Describe your issue

In the reproduction, notice that because of the important: ':root' option, [animation-duration:5s] doesn't override the duration from animate-spin. That is because its generated CSS is:

.\[animation-duration\:5s\]{
  animation-duration: 5s
}

instead of the expected:

:root :is(.\[animation-duration\:5s\]){
  animation-duration: 5s
}
@RobinMalfait
Copy link
Contributor

Hey!

This should be fixed by #13353, and will be available in the next release.

You can already try it by using the insiders build npm install tailwindcss@insiders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants