Skip to content

Commit 02f9d87

Browse files
authored
update postcss and tests (#369)
1 parent 223e0a0 commit 02f9d87

7 files changed

+124
-124
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"eslint-scope": "^7.0.0",
5757
"eslint-visitor-keys": "^3.0.0",
5858
"espree": "^9.0.0",
59-
"postcss": "^8.4.23",
59+
"postcss": "^8.4.25",
6060
"postcss-scss": "^4.0.6"
6161
},
6262
"devDependencies": {

Diff for: tests/fixtures/parser/style-context/empty-style-element-output.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"source": {
1111
"inputId": 0,
1212
"start": {
13-
"offset": 52,
13+
"column": 8,
1414
"line": 7,
15-
"column": 8
15+
"offset": 52
1616
}
1717
},
1818
"lastEach": 1,

Diff for: tests/fixtures/parser/style-context/one-line-css-output.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,33 @@
2424
},
2525
"type": "decl",
2626
"source": {
27-
"inputId": 0,
28-
"start": {
29-
"offset": 89,
27+
"end": {
28+
"column": 30,
3029
"line": 7,
31-
"column": 20
30+
"offset": 99
3231
},
33-
"end": {
34-
"offset": 99,
32+
"inputId": 0,
33+
"start": {
34+
"column": 20,
3535
"line": 7,
36-
"column": 30
36+
"offset": 89
3737
}
3838
},
3939
"prop": "color",
4040
"value": "red"
4141
}
4242
],
4343
"source": {
44-
"inputId": 0,
45-
"start": {
46-
"offset": 78,
44+
"end": {
45+
"column": 32,
4746
"line": 7,
48-
"column": 9
47+
"offset": 101
4948
},
50-
"end": {
51-
"offset": 101,
49+
"inputId": 0,
50+
"start": {
51+
"column": 9,
5252
"line": 7,
53-
"column": 32
53+
"offset": 78
5454
}
5555
},
5656
"selector": ".myClass",
@@ -61,9 +61,9 @@
6161
"source": {
6262
"inputId": 0,
6363
"start": {
64-
"offset": 77,
64+
"column": 8,
6565
"line": 7,
66-
"column": 8
66+
"offset": 77
6767
}
6868
},
6969
"lastEach": 1,

Diff for: tests/fixtures/parser/style-context/parse-error-output.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"endLine": 4,
1111
"endColumn": 24,
1212
"input": {
13-
"line": 4,
1413
"column": 11,
15-
"endLine": 4,
1614
"endColumn": 24,
15+
"endLine": 4,
16+
"line": 4,
1717
"source": "\n // This syntax is intentionally invalid CSS - this is to be used to test resiliency against invalid input\n .container {\n class .div-class/35\n # Weird comment\n color: red;\n\n .span-class begin\n font-weight: bold;\n end\n }\n"
1818
}
1919
}

Diff for: tests/fixtures/parser/style-context/simple-css-output.json

+30-30
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,33 @@
2424
},
2525
"type": "decl",
2626
"source": {
27-
"inputId": 0,
28-
"start": {
29-
"offset": 107,
27+
"end": {
28+
"column": 15,
3029
"line": 11,
31-
"column": 5
30+
"offset": 117
3231
},
33-
"end": {
34-
"offset": 117,
32+
"inputId": 0,
33+
"start": {
34+
"column": 5,
3535
"line": 11,
36-
"column": 15
36+
"offset": 107
3737
}
3838
},
3939
"prop": "color",
4040
"value": "red"
4141
}
4242
],
4343
"source": {
44+
"end": {
45+
"column": 3,
46+
"line": 12,
47+
"offset": 121
48+
},
4449
"inputId": 0,
4550
"start": {
46-
"offset": 92,
51+
"column": 3,
4752
"line": 10,
48-
"column": 3
49-
},
50-
"end": {
51-
"offset": 121,
52-
"line": 12,
53-
"column": 3
53+
"offset": 92
5454
}
5555
},
5656
"selector": ".myClass",
@@ -73,33 +73,33 @@
7373
},
7474
"type": "decl",
7575
"source": {
76-
"inputId": 0,
77-
"start": {
78-
"offset": 134,
76+
"end": {
77+
"column": 24,
7978
"line": 15,
80-
"column": 5
79+
"offset": 153
8180
},
82-
"end": {
83-
"offset": 153,
81+
"inputId": 0,
82+
"start": {
83+
"column": 5,
8484
"line": 15,
85-
"column": 24
85+
"offset": 134
8686
}
8787
},
8888
"prop": "font-size",
8989
"value": "xx-large"
9090
}
9191
],
9292
"source": {
93+
"end": {
94+
"column": 3,
95+
"line": 16,
96+
"offset": 157
97+
},
9398
"inputId": 0,
9499
"start": {
95-
"offset": 126,
100+
"column": 3,
96101
"line": 14,
97-
"column": 3
98-
},
99-
"end": {
100-
"offset": 157,
101-
"line": 16,
102-
"column": 3
102+
"offset": 126
103103
}
104104
},
105105
"selector": "b",
@@ -110,9 +110,9 @@
110110
"source": {
111111
"inputId": 0,
112112
"start": {
113-
"offset": 89,
113+
"column": 8,
114114
"line": 9,
115-
"column": 8
115+
"offset": 89
116116
}
117117
},
118118
"lastEach": 1,

Diff for: tests/fixtures/parser/style-context/simple-scss-output.json

+43-43
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@
3636
},
3737
"type": "comment",
3838
"source": {
39-
"inputId": 0,
40-
"start": {
41-
"offset": 169,
42-
"line": 10,
43-
"column": 7
44-
},
4539
"end": {
4640
"offset": 196,
4741
"line": 10,
4842
"column": 34
43+
},
44+
"inputId": 0,
45+
"start": {
46+
"column": 7,
47+
"line": 10,
48+
"offset": 169
4949
}
5050
},
5151
"text": "This is an inline comment"
@@ -57,33 +57,33 @@
5757
},
5858
"type": "decl",
5959
"source": {
60-
"inputId": 0,
61-
"start": {
62-
"offset": 204,
60+
"end": {
61+
"column": 17,
6362
"line": 11,
64-
"column": 7
63+
"offset": 214
6564
},
66-
"end": {
67-
"offset": 214,
65+
"inputId": 0,
66+
"start": {
67+
"column": 7,
6868
"line": 11,
69-
"column": 17
69+
"offset": 204
7070
}
7171
},
7272
"prop": "color",
7373
"value": "red"
7474
}
7575
],
7676
"source": {
77+
"end": {
78+
"column": 5,
79+
"line": 12,
80+
"offset": 220
81+
},
7782
"inputId": 0,
7883
"start": {
79-
"offset": 150,
84+
"column": 5,
8085
"line": 9,
81-
"column": 5
82-
},
83-
"end": {
84-
"offset": 220,
85-
"line": 12,
86-
"column": 5
86+
"offset": 150
8787
}
8888
},
8989
"selector": ".div-class",
@@ -106,33 +106,33 @@
106106
},
107107
"type": "decl",
108108
"source": {
109-
"inputId": 0,
110-
"start": {
111-
"offset": 247,
109+
"end": {
110+
"column": 24,
112111
"line": 15,
113-
"column": 7
112+
"offset": 264
114113
},
115-
"end": {
116-
"offset": 264,
114+
"inputId": 0,
115+
"start": {
116+
"column": 7,
117117
"line": 15,
118-
"column": 24
118+
"offset": 247
119119
}
120120
},
121121
"prop": "font-weight",
122122
"value": "bold"
123123
}
124124
],
125125
"source": {
126+
"end": {
127+
"column": 5,
128+
"line": 16,
129+
"offset": 270
130+
},
126131
"inputId": 0,
127132
"start": {
128-
"offset": 227,
133+
"column": 5,
129134
"line": 14,
130-
"column": 5
131-
},
132-
"end": {
133-
"offset": 270,
134-
"line": 16,
135-
"column": 5
135+
"offset": 227
136136
}
137137
},
138138
"selector": ".span-class",
@@ -141,16 +141,16 @@
141141
}
142142
],
143143
"source": {
144+
"end": {
145+
"column": 3,
146+
"line": 17,
147+
"offset": 274
148+
},
144149
"inputId": 0,
145150
"start": {
146-
"offset": 133,
151+
"column": 3,
147152
"line": 8,
148-
"column": 3
149-
},
150-
"end": {
151-
"offset": 274,
152-
"line": 17,
153-
"column": 3
153+
"offset": 133
154154
}
155155
},
156156
"selector": ".container",
@@ -161,9 +161,9 @@
161161
"source": {
162162
"inputId": 0,
163163
"start": {
164-
"offset": 130,
164+
"column": 20,
165165
"line": 7,
166-
"column": 20
166+
"offset": 130
167167
}
168168
},
169169
"lastEach": 1,

0 commit comments

Comments
 (0)