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
As far as nesting goes, it seems with both CSS Tree versions 2.x and 3.x work both with and without the &
<html><head><style>
h2 {
& span {
color: red;
}
}
h3 {
span {
color: blue;
}
}
</style></head><body><h2>This is the second heading that <span>should be red</span>.</h2><h3>This is the second heading that <span>should be blue</span>.</h3></body></html>
Summary
As far as nesting goes, it seems with both CSS Tree versions
2.x
and3.x
work both with and without the&
But, we get parse errors for the non
&
stylesAnd the
&
styles comes out the other side missing the&
Details
Looks we there is a
NestedSelector
we can grab from CSS Tree to preserve the&
For the non
&
use case, seems like there is an open issue for that - csstree/csstree#268The text was updated successfully, but these errors were encountered: