Skip to content

Commit 05ddba1

Browse files
committed
Additional unit tests to check nested media query lists
1 parent 5d3de65 commit 05ddba1

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

tests/inputs/media.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,22 @@
3333
}
3434
}
3535

36+
@media a, b {
37+
@media c {
38+
color: blue;
39+
}
40+
}
41+
42+
@media a{
43+
@media b, c {
44+
color: blue;
45+
}
46+
}
47+
48+
@media a, b{
49+
@media c, d {
50+
color: blue;
51+
}
52+
}
53+
3654

tests/outputs/media.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@
2626
color: red;
2727
div {
2828
color: red; } }
29+
30+
@media a and c, b and c {
31+
color: blue; }
32+
33+
@media a and b, a and c {
34+
color: blue; }
35+
36+
@media a and c, a and d, b and c, b and d {
37+
color: blue; }

0 commit comments

Comments
 (0)