-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Handle CSS Nesting Module
selectors?
#1945
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
Comments
I agree that it'd be nice if this was lowered. I'll add a warning for now but keep this issue open. |
Since this issue was posted, the specification authors have decided to go back and rethink the syntax, so this currently isn't actionable. The final syntax will likely be different than what esbuild implements. I'm going to close this issue for now since it's not currently something esbuild can move forward with. We can move forward if/when the specification authors figure out what they want this feature to be. |
It looks like this is shipping in nightly browser versions: https://webkit.org/blog/13813/try-css-nesting-today-in-safari-technology-preview/. The syntax could still change, but it is now more certain than it was before. |
It's still in draft, and not supported anywhere yet, but I'm wondering if esbuild should handle this code when minifiying:
Right now, this outputs:
One day, this will be supported in browsers. But for now, we'd want to output this if our CSS target isn't set to the newest support:
Or even:
Or maybe minification should fail (similar to JS when your syntax cannot be minified to support your target)?
The text was updated successfully, but these errors were encountered: