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
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.
@scope(.foo) {
&& {
--color: yellow;
}
}
this is valid in CSS, but using lightningcss it outputs
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: