Skip to content

Commit 1fc4ffd

Browse files
committed
Test 3 level nesting
Nesting 3 or more level should be kept as it is.
1 parent 5f6fe56 commit 1fc4ffd

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

test/expected/more-nested-queries.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.foo {
2+
z-index: 1;
3+
}
4+
5+
.bar {
6+
z-index: 2;
7+
}
8+
9+
@media (min-width: 1px) {
10+
.foo {
11+
z-index: 3;
12+
}
13+
14+
@supports (display: auto) {
15+
.foo {
16+
z-index: 4;
17+
}
18+
19+
@media (min-width: 2px) {
20+
.foo {
21+
z-index: 5;
22+
}
23+
}
24+
}
25+
.bar {
26+
z-index: 6;
27+
}
28+
}

test/fixtures/more-nested-queries.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.foo {
2+
z-index: 1;
3+
}
4+
5+
@media (min-width: 1px) {
6+
.foo {
7+
z-index: 3;
8+
}
9+
10+
@supports (display: auto) {
11+
.foo {
12+
z-index: 4;
13+
}
14+
15+
@media (min-width: 2px) {
16+
.foo {
17+
z-index: 5;
18+
}
19+
}
20+
}
21+
}
22+
23+
.bar {
24+
z-index: 2;
25+
}
26+
27+
@media (min-width: 1px) {
28+
.bar {
29+
z-index: 6;
30+
}
31+
}

0 commit comments

Comments
 (0)