File tree 10 files changed +183
-103
lines changed
fixtures/parser/style-context
10 files changed +183
-103
lines changed Original file line number Diff line number Diff line change 57
57
"eslint-visitor-keys" : " ^3.0.0" ,
58
58
"espree" : " ^9.0.0" ,
59
59
"postcss" : " ^8.4.28" ,
60
- "postcss-scss" : " ^4.0.6 "
60
+ "postcss-scss" : " ^4.0.7 "
61
61
},
62
62
"devDependencies" : {
63
63
"@changesets/changelog-github" : " ^0.4.8" ,
Original file line number Diff line number Diff line change 9
9
"nodes" : [],
10
10
"source" : {
11
11
"end" : {
12
- "column" : 8 ,
13
12
"line" : 7 ,
13
+ "column" : 8 ,
14
14
"offset" : 52
15
15
},
16
16
"inputId" : 0 ,
17
17
"start" : {
18
- "column" : 8 ,
19
18
"line" : 7 ,
19
+ "column" : 8 ,
20
20
"offset" : 52
21
21
}
22
22
},
Original file line number Diff line number Diff line change 23
23
"between" : " : "
24
24
},
25
25
"type" : " decl" ,
26
+ "prop" : " color" ,
27
+ "value" : " red" ,
26
28
"source" : {
27
29
"end" : {
28
- "column" : 30 ,
29
30
"line" : 7 ,
31
+ "column" : 30 ,
30
32
"offset" : 99
31
33
},
32
34
"inputId" : 0 ,
33
35
"start" : {
34
- "column" : 20 ,
35
36
"line" : 7 ,
37
+ "column" : 20 ,
36
38
"offset" : 89
37
39
}
38
- },
39
- "prop" : " color" ,
40
- "value" : " red"
40
+ }
41
41
}
42
42
],
43
+ "selector" : " .myClass" ,
43
44
"source" : {
44
45
"end" : {
45
- "column" : 32 ,
46
46
"line" : 7 ,
47
+ "column" : 32 ,
47
48
"offset" : 101
48
49
},
49
50
"inputId" : 0 ,
50
51
"start" : {
51
- "column" : 9 ,
52
52
"line" : 7 ,
53
+ "column" : 9 ,
53
54
"offset" : 78
54
55
}
55
56
},
56
- "selector" : " .myClass" ,
57
57
"lastEach" : 1 ,
58
58
"indexes" : {}
59
59
}
60
60
],
61
61
"source" : {
62
62
"end" : {
63
- "column" : 34 ,
64
63
"line" : 7 ,
64
+ "column" : 34 ,
65
65
"offset" : 103
66
66
},
67
67
"inputId" : 0 ,
68
68
"start" : {
69
- "column" : 8 ,
70
69
"line" : 7 ,
70
+ "column" : 8 ,
71
71
"offset" : 77
72
72
}
73
73
},
Original file line number Diff line number Diff line change 10
10
"endLine" : 4 ,
11
11
"endColumn" : 24 ,
12
12
"input" : {
13
+ "line" : 4 ,
13
14
"column" : 11 ,
14
- "endColumn" : 24 ,
15
15
"endLine" : 4 ,
16
- "line " : 4 ,
16
+ "endColumn " : 24 ,
17
17
"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 "
18
18
}
19
19
}
Original file line number Diff line number Diff line change 23
23
"between" : " : "
24
24
},
25
25
"type" : " decl" ,
26
+ "prop" : " color" ,
27
+ "value" : " red" ,
26
28
"source" : {
27
29
"end" : {
28
- "column" : 15 ,
29
30
"line" : 11 ,
31
+ "column" : 15 ,
30
32
"offset" : 117
31
33
},
32
34
"inputId" : 0 ,
33
35
"start" : {
34
- "column" : 5 ,
35
36
"line" : 11 ,
37
+ "column" : 5 ,
36
38
"offset" : 107
37
39
}
38
- },
39
- "prop" : " color" ,
40
- "value" : " red"
40
+ }
41
41
}
42
42
],
43
+ "selector" : " .myClass" ,
43
44
"source" : {
44
45
"end" : {
45
- "column" : 3 ,
46
46
"line" : 12 ,
47
+ "column" : 3 ,
47
48
"offset" : 121
48
49
},
49
50
"inputId" : 0 ,
50
51
"start" : {
51
- "column" : 3 ,
52
52
"line" : 10 ,
53
+ "column" : 3 ,
53
54
"offset" : 92
54
55
}
55
56
},
56
- "selector" : " .myClass" ,
57
57
"lastEach" : 1 ,
58
58
"indexes" : {}
59
59
},
72
72
"between" : " : "
73
73
},
74
74
"type" : " decl" ,
75
+ "prop" : " font-size" ,
76
+ "value" : " xx-large" ,
75
77
"source" : {
76
78
"end" : {
77
- "column" : 24 ,
78
79
"line" : 15 ,
80
+ "column" : 24 ,
79
81
"offset" : 153
80
82
},
81
83
"inputId" : 0 ,
82
84
"start" : {
83
- "column" : 5 ,
84
85
"line" : 15 ,
86
+ "column" : 5 ,
85
87
"offset" : 134
86
88
}
87
- },
88
- "prop" : " font-size" ,
89
- "value" : " xx-large"
89
+ }
90
90
}
91
91
],
92
+ "selector" : " b" ,
92
93
"source" : {
93
94
"end" : {
94
- "column" : 3 ,
95
95
"line" : 16 ,
96
+ "column" : 3 ,
96
97
"offset" : 157
97
98
},
98
99
"inputId" : 0 ,
99
100
"start" : {
100
- "column" : 3 ,
101
101
"line" : 14 ,
102
+ "column" : 3 ,
102
103
"offset" : 126
103
104
}
104
105
},
105
- "selector" : " b" ,
106
106
"lastEach" : 1 ,
107
107
"indexes" : {}
108
108
}
109
109
],
110
110
"source" : {
111
111
"end" : {
112
- "column" : 1 ,
113
112
"line" : 17 ,
113
+ "column" : 1 ,
114
114
"offset" : 159
115
115
},
116
116
"inputId" : 0 ,
117
117
"start" : {
118
- "column" : 8 ,
119
118
"line" : 9 ,
119
+ "column" : 8 ,
120
120
"offset" : 89
121
121
}
122
122
},
Original file line number Diff line number Diff line change 35
35
"text" : " This is an inline comment"
36
36
},
37
37
"type" : " comment" ,
38
+ "text" : " This is an inline comment" ,
38
39
"source" : {
39
40
"end" : {
40
- "offset" : 196 ,
41
41
"line" : 10 ,
42
- "column" : 34
42
+ "column" : 34 ,
43
+ "offset" : 196
43
44
},
44
45
"inputId" : 0 ,
45
46
"start" : {
46
- "column" : 7 ,
47
47
"line" : 10 ,
48
+ "column" : 7 ,
48
49
"offset" : 169
49
50
}
50
- },
51
- "text" : " This is an inline comment"
51
+ }
52
52
},
53
53
{
54
54
"raws" : {
55
55
"before" : " \n " ,
56
56
"between" : " : "
57
57
},
58
58
"type" : " decl" ,
59
+ "prop" : " color" ,
60
+ "value" : " red" ,
59
61
"source" : {
60
62
"end" : {
61
- "column" : 17 ,
62
63
"line" : 11 ,
64
+ "column" : 17 ,
63
65
"offset" : 214
64
66
},
65
67
"inputId" : 0 ,
66
68
"start" : {
67
- "column" : 7 ,
68
69
"line" : 11 ,
70
+ "column" : 7 ,
69
71
"offset" : 204
70
72
}
71
- },
72
- "prop" : " color" ,
73
- "value" : " red"
73
+ }
74
74
}
75
75
],
76
+ "selector" : " .div-class" ,
76
77
"source" : {
77
78
"end" : {
78
- "column" : 5 ,
79
79
"line" : 12 ,
80
+ "column" : 5 ,
80
81
"offset" : 220
81
82
},
82
83
"inputId" : 0 ,
83
84
"start" : {
84
- "column" : 5 ,
85
85
"line" : 9 ,
86
+ "column" : 5 ,
86
87
"offset" : 150
87
88
}
88
89
},
89
- "selector" : " .div-class" ,
90
90
"lastEach" : 1 ,
91
91
"indexes" : {}
92
92
},
105
105
"between" : " : "
106
106
},
107
107
"type" : " decl" ,
108
+ "prop" : " font-weight" ,
109
+ "value" : " bold" ,
108
110
"source" : {
109
111
"end" : {
110
- "column" : 24 ,
111
112
"line" : 15 ,
113
+ "column" : 24 ,
112
114
"offset" : 264
113
115
},
114
116
"inputId" : 0 ,
115
117
"start" : {
116
- "column" : 7 ,
117
118
"line" : 15 ,
119
+ "column" : 7 ,
118
120
"offset" : 247
119
121
}
120
- },
121
- "prop" : " font-weight" ,
122
- "value" : " bold"
122
+ }
123
123
}
124
124
],
125
+ "selector" : " .span-class" ,
125
126
"source" : {
126
127
"end" : {
127
- "column" : 5 ,
128
128
"line" : 16 ,
129
+ "column" : 5 ,
129
130
"offset" : 270
130
131
},
131
132
"inputId" : 0 ,
132
133
"start" : {
133
- "column" : 5 ,
134
134
"line" : 14 ,
135
+ "column" : 5 ,
135
136
"offset" : 227
136
137
}
137
138
},
138
- "selector" : " .span-class" ,
139
139
"lastEach" : 1 ,
140
140
"indexes" : {}
141
141
}
142
142
],
143
+ "selector" : " .container" ,
143
144
"source" : {
144
145
"end" : {
145
- "column" : 3 ,
146
146
"line" : 17 ,
147
+ "column" : 3 ,
147
148
"offset" : 274
148
149
},
149
150
"inputId" : 0 ,
150
151
"start" : {
151
- "column" : 3 ,
152
152
"line" : 8 ,
153
+ "column" : 3 ,
153
154
"offset" : 133
154
155
}
155
156
},
156
- "selector" : " .container" ,
157
157
"lastEach" : 1 ,
158
158
"indexes" : {}
159
159
}
160
160
],
161
161
"source" : {
162
162
"end" : {
163
- "column" : 1 ,
164
163
"line" : 18 ,
164
+ "column" : 1 ,
165
165
"offset" : 276
166
166
},
167
167
"inputId" : 0 ,
168
168
"start" : {
169
- "column" : 20 ,
170
169
"line" : 7 ,
170
+ "column" : 20 ,
171
171
"offset" : 130
172
172
}
173
173
},
You can’t perform that action at this time.
0 commit comments