Debian Codegraph @

sass-spec/spec/extend-tests/238_unify_root_pseudoelement/input.scss

raw
1 // We assume that by default classes don't apply to the :root unless marked explicitly.
2 :root .foo-1 { test: 1; }
3 .bar-1 .baz-1 { @extend .foo-1; }
4
5 // We know the two classes must be the same :root element so we can combine them.
6 .foo-2:root .bar-2 { test: 2; }
7 .baz-2:root .bang-2 { @extend .bar-2; }
8
9 // This extend should not apply because the :root elements are different.
10 html:root .bar-3 { test: 3; }
11 xml:root .bang-3 { @extend .bar-3}
12
13 // We assume that direct descendant of the :root is not the same element as a descendant.
14 .foo-4:root > .bar-4 .x-4 { test: 4; }
15 .baz-4:root .bang-4 .y-4 {@extend .x-4}