Replies: 1 comment 1 reply
-
Hey! Nesting is supported in all major browsers, however the big issue I notice is that you are using Is the goal of nesting the imports inside of a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of Tailwind CSS are you using?
3.4.16
What build tool (or framework if it abstracts the build tool) are you using?
What version of Node.js are you using?
v20.17.0
What browser are you using?
Safari 18.0.1 (that is not what I use to build the package, but it is the browser where the issue happens, I use ubuntu 22.04 to build)
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/zBXvzTRl77
Needs to be opened with Safari browser. Works all fine on firefox and chromium
Describe your issue
Using nested CSS to encapsulate Tailwind generated CSS does not work on Safari.
The Webkit team claims they are supporting nested CSS since 2023: https://webkit.org/blog/13813/try-css-nesting-today-in-safari-technology-preview/ https://caniuse.com/css-nesting
I tried a really basic nested CSS without tailwind (just rendering background-color) and it is working with safari, so the problem is specifically with tailwind generated CSS
I have also tried to generate tailwind CSS manually, and encapsulate it myself in the component, but still does not work on Safari (it works on firefox and chromium though)
Have you ever met this problem? Is there a known fix? Imo it seems more like an issue with Safari not properly implementing the latest nested CSS standard than TailwindCSS, but maybe Tailwind is doing some non standard things?
Beta Was this translation helpful? Give feedback.
All reactions