You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nesting selector cannot represent pseudo-elements (identical to the behavior of the :is() pseudo-class).
So I believe esbuild is working correctly here. Both a { &::before {} } and a:is(::before) {} are equivalent according to the specification, and are equally invalid. Transforming a { &::before {} } into a::before {} would be incorrect because it's not equivalent.
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: