Skip to content

Commit c3ab60c

Browse files
committed
add messed up media test
1 parent ffd1bd0 commit c3ab60c

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

test/cases/media.messed.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@media screen, projection{ html
2+
3+
{
4+
background: #fffef0;
5+
color:#300;
6+
}
7+
body
8+
9+
{
10+
max-width: 35em;
11+
margin: 0 auto;
12+
13+
14+
}
15+
}
16+
17+
@media print
18+
{
19+
html {
20+
background: #fff;
21+
color: #000;
22+
}
23+
body {
24+
padding: 1in;
25+
border: 0.5pt solid #666;
26+
}
27+
}

test/cases/media.messed.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"stylesheet": {
3+
"rules": [
4+
{
5+
"media": "screen, projection",
6+
"rules": [
7+
{
8+
"selector": "html",
9+
"declarations": [
10+
{
11+
"property": "background",
12+
"value": "#fffef0"
13+
},
14+
{
15+
"property": "color",
16+
"value": "#300"
17+
}
18+
]
19+
},
20+
{
21+
"selector": "body",
22+
"declarations": [
23+
{
24+
"property": "max-width",
25+
"value": "35em"
26+
},
27+
{
28+
"property": "margin",
29+
"value": "0 auto"
30+
}
31+
]
32+
}
33+
]
34+
},
35+
{
36+
"media": "print",
37+
"rules": [
38+
{
39+
"selector": "html",
40+
"declarations": [
41+
{
42+
"property": "background",
43+
"value": "#fff"
44+
},
45+
{
46+
"property": "color",
47+
"value": "#000"
48+
}
49+
]
50+
},
51+
{
52+
"selector": "body",
53+
"declarations": [
54+
{
55+
"property": "padding",
56+
"value": "1in"
57+
},
58+
{
59+
"property": "border",
60+
"value": "0.5pt solid #666"
61+
}
62+
]
63+
}
64+
]
65+
}
66+
]
67+
}
68+
}

0 commit comments

Comments
 (0)