Skip to content

Commit 0038292

Browse files
committed
Add test to reproduce warnings
1 parent 675bad9 commit 0038292

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@custom-selector :--foo .foo;
2+
@custom-selector :--foo-bar .foo .bar;
3+
@custom-selector :--foo-baz .foo .baz;
4+
@custom-selector :--foo-bar-baz .foo .bar .baz;
5+
6+
:--foo {
7+
color: red;
8+
}
9+
10+
:--foo-bar {
11+
color: green;
12+
}
13+
14+
:--foo-baz {
15+
color: black;
16+
}
17+
18+
:--foo-bar-baz {
19+
color: blue;
20+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.foo {
2+
color: red;
3+
}
4+
5+
.foo .bar {
6+
color: green;
7+
}
8+
9+
.foo .baz {
10+
color: black;
11+
}
12+
13+
.foo .bar .baz {
14+
color: blue;
15+
}

test/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ test("@custom-selector", function(t) {
3030
compareFixtures(t, "multiline", "should transform multiline")
3131
compareFixtures(t, "some-hyphen", "should transform some hyphen")
3232
compareFixtures(t, "matches", "should transform matches selector")
33+
compareFixtures(t, "similar-matches", "should transform matches selector")
3334

3435
compareFixtures(t, "extension", "should transform local extensions", {
3536
extensions: {

0 commit comments

Comments
 (0)