Skip to content

Commit 3c527d1

Browse files
test: check nested selector groupings and partial overlap cases
1 parent aa6c567 commit 3c527d1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: test/duplicated-extension.js

+7
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,10 @@ test(
5555
'.one.two {} .two{&.one {}}',
5656
'.one.two {}'
5757
);
58+
59+
test(
60+
'nested selector grouping',
61+
[nestedCSS, scss],
62+
'.one {&.two, .two& {}} .one {.two&, &.two {}}',
63+
'.one.two, .two.one {}'
64+
);

Diff for: test/unique-css.js

+7
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,10 @@ test(
163163
'@keyframes a {0% {} 100% {}} @-webkit-keyframes a {0% {} 100% {}}',
164164
'@keyframes a {0% {} 100% {}} @-webkit-keyframes a {0% {} 100% {}}'
165165
);
166+
167+
test(
168+
'selector groups partially overlapping',
169+
css,
170+
'.one, .two {} .one, .two, .three {}',
171+
'.one, .two {} .one, .two, .three {}'
172+
);

0 commit comments

Comments
 (0)