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

Vendor prefix can break the generated css #6360

Closed
Prashank25 opened this issue Dec 10, 2021 · 1 comment · Fixed by #6369
Closed

Vendor prefix can break the generated css #6360

Prashank25 opened this issue Dec 10, 2021 · 1 comment · Fixed by #6369

Comments

@Prashank25
Copy link

Prashank25 commented Dec 10, 2021

What version of Tailwind CSS are you using?

v3.0.0

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

webpack 5.60.0 and play.tailwind.com

What version of Node.js are you using?

v16.13.0

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction URL

Try this in any browser except firefox:
https://play.tailwindcss.com/YkD75GMXHs?file=css

Describe your issue

If I @apply border class inside my custom CSS, and it just happens to be a vendor-prefixed, and the current browser doesn't support it then that invalidates all the CSS after that vendor-prefix.

Any vendor-prefixed classes will need to be separated into their own blocks and not merged in the comma-separated list. This does happen in my webpack setup as well but I suspect that's not relevant.

@Prashank25 Prashank25 changed the title Vendor prefix breaks can break the generated css Vendor prefix can break the generated css Dec 10, 2021
@adamwathan
Copy link
Member

Ah great catch, this is an important one and will prioritize, thank you 👍🏻

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

Successfully merging a pull request may close this issue.

2 participants