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
"&" selector not preserved inside @scope #700
Comments
Hmm, I think this isn't really a valid configuration. You've set the target to an old version of chrome that doesn't support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I noticed an issue with
@scope
at rules.When the
&
selector is used, it does not get preserved and it gets substituted with a:scope
selectorcan be verified here
Beside being slightly longer for the sake of minification, the selector should be preserved as it is (either
&
or:scope
) due to the different impact on specificity.Additionally
&
supports reuse in the same selector.e.g.
this is valid in CSS, but using lightningcss it outputs
that is invalid. playground here
The text was updated successfully, but these errors were encountered: