-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CSS Nesting: multiple children #3096
Comments
thanks for the fix, but the issue still persists with pseudo-elements... a {
&::before,
&::after {
content: "???";
}
} which will result in... a:is(::before, ::after) {
content: "???";
} Which again, will not work. |
As far as I can tell, pseudo-elements deliberately don't work with CSS nesting according to the CSS nesting specification (https://www.w3.org/TR/css-nesting-1/#ref-for-matches-pseudo%E2%91%A0):
So I believe esbuild is working correctly here. Both |
Well that's interesting, as this works in Chrome 113 a {
&::before,
&::after {
content: "???";
}
} |
Think this is a bug in esbuild when transforming down CSS nesting...
This input needs no transforming, and all works. It will style
span
andlabel
siblings ofinput
:But introducing nesting:
Results in this output:
Which is invalid and incorrect, and will not style the siblings
span
andlabel
ofinput
.The text was updated successfully, but these errors were encountered: