Skip to content

Commit 316ee49

Browse files
committed
Updated test for at-page for #34.
1 parent 24fc2f9 commit 316ee49

File tree

2 files changed

+38
-8
lines changed

2 files changed

+38
-8
lines changed

test/cases/paged-media.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
/* toc above */
12
@page toc, index:blank {
3+
/* toc inside */
24
color: green;
35
}
46

test/cases/paged-media.json

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,64 @@
22
"type": "stylesheet",
33
"stylesheet": {
44
"rules": [
5+
{
6+
"type": "comment",
7+
"comment": " toc above ",
8+
"position": {
9+
"start": {
10+
"line": 1,
11+
"column": 1
12+
},
13+
"end": {
14+
"line": 1,
15+
"column": 16
16+
}
17+
}
18+
},
519
{
620
"type": "page",
721
"selectors": [
822
"toc",
923
"index:blank"
1024
],
1125
"declarations": [
26+
{
27+
"type": "comment",
28+
"comment": " toc inside ",
29+
"position": {
30+
"start": {
31+
"line": 3,
32+
"column": 3
33+
},
34+
"end": {
35+
"line": 3,
36+
"column": 19
37+
}
38+
}
39+
},
1240
{
1341
"type": "declaration",
1442
"property": "color",
1543
"value": "green",
1644
"position": {
1745
"start": {
18-
"line": 2,
46+
"line": 4,
1947
"column": 3
2048
},
2149
"end": {
22-
"line": 2,
50+
"line": 4,
2351
"column": 15
2452
}
2553
}
2654
}
2755
],
2856
"position": {
2957
"start": {
30-
"line": 1,
58+
"line": 2,
3159
"column": 1
3260
},
3361
"end": {
34-
"line": 3,
62+
"line": 5,
3563
"column": 2
3664
}
3765
}
@@ -46,23 +74,23 @@
4674
"value": "16pt",
4775
"position": {
4876
"start": {
49-
"line": 6,
77+
"line": 8,
5078
"column": 3
5179
},
5280
"end": {
53-
"line": 6,
81+
"line": 8,
5482
"column": 18
5583
}
5684
}
5785
}
5886
],
5987
"position": {
6088
"start": {
61-
"line": 5,
89+
"line": 7,
6290
"column": 1
6391
},
6492
"end": {
65-
"line": 7,
93+
"line": 9,
6694
"column": 2
6795
}
6896
}

0 commit comments

Comments
 (0)