Skip to content

Commit 1afd409

Browse files
committed
Updated test for at-supports for #34.
1 parent 36a5add commit 1afd409

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

test/cases/supports.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@supports (display: flex) or (display: box) {
2+
/* flex above */
23
.flex {
4+
/* flex inside */
35
display: box;
46
display: flex;
57
}

test/cases/supports.json

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,51 @@
66
"type": "supports",
77
"supports": "(display: flex) or (display: box)",
88
"rules": [
9+
{
10+
"type": "comment",
11+
"comment": " flex above ",
12+
"position": {
13+
"start": {
14+
"line": 2,
15+
"column": 3
16+
},
17+
"end": {
18+
"line": 2,
19+
"column": 19
20+
}
21+
}
22+
},
923
{
1024
"type": "rule",
1125
"selectors": [
1226
".flex"
1327
],
1428
"declarations": [
29+
{
30+
"type": "comment",
31+
"comment": " flex inside ",
32+
"position": {
33+
"start": {
34+
"line": 4,
35+
"column": 5
36+
},
37+
"end": {
38+
"line": 4,
39+
"column": 22
40+
}
41+
}
42+
},
1543
{
1644
"type": "declaration",
1745
"property": "display",
1846
"value": "box",
1947
"position": {
2048
"start": {
21-
"line": 3,
49+
"line": 5,
2250
"column": 5
2351
},
2452
"end": {
25-
"line": 3,
53+
"line": 5,
2654
"column": 17
2755
}
2856
}
@@ -33,23 +61,23 @@
3361
"value": "flex",
3462
"position": {
3563
"start": {
36-
"line": 4,
64+
"line": 6,
3765
"column": 5
3866
},
3967
"end": {
40-
"line": 4,
68+
"line": 6,
4169
"column": 18
4270
}
4371
}
4472
}
4573
],
4674
"position": {
4775
"start": {
48-
"line": 2,
76+
"line": 3,
4977
"column": 3
5078
},
5179
"end": {
52-
"line": 5,
80+
"line": 7,
5381
"column": 4
5482
}
5583
}
@@ -61,7 +89,7 @@
6189
"column": 1
6290
},
6391
"end": {
64-
"line": 6,
92+
"line": 8,
6593
"column": 2
6694
}
6795
}

0 commit comments

Comments
 (0)