Skip to content

Commit 48e4d10

Browse files
committed
Update test
A nested media queries should be popped up to root and pack. This change completely resolves #50.
1 parent d811f26 commit 48e4d10

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

test/expected/issue50.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@
66
.foo {
77
z-index: 2;
88
}
9-
10-
@media (min-width: 1024px) {
11-
.foo {
12-
z-index: 3;
13-
}
14-
}
159
}
1610

1711
@media (min-width: 1024px) {
1812
.foo {
19-
z-index: 4;
13+
z-index: 3;
2014
}
15+
16+
@supports (display: auto) {
17+
.foo {
18+
z-index: 4;
19+
}
20+
}
21+
}
2122
}

test/fixtures/issue50.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
@media (min-width: 1024px) {
66
.foo {
7-
z-index: 4;
7+
z-index: 3;
88
}
99
}
1010

@@ -15,7 +15,7 @@
1515

1616
@media (min-width: 1024px) {
1717
.foo {
18-
z-index: 3;
18+
z-index: 4;
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)