File tree 10 files changed +7489
-8
lines changed
crates/swc_css_parser/tests
recovery/at-rule/supports/non-standard-prelude
10 files changed +7489
-8
lines changed Original file line number Diff line number Diff line change 141
141
background : red;
142
142
}
143
143
}
144
+
145
+ @supports (func ("example": 1 )) {
146
+ * { background : red; }
147
+ }
148
+
149
+ @supports (--var) {
150
+ * { background : red; }
151
+ }
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
table {
2
2
color: \red;
3
3
}
4
+
5
+ a {
6
+ background : url ("a).png" );
7
+ background : url (a;a);
8
+ background : url (a/*);
9
+ background: \;a;
10
+ }
11
+ :not([foo=")"]) { }
12
+ :not(div/*)*/ ) { }
13
+ : not (: nth-child (2n of [foo = ")" ])) { }
14
+ [foo = \"] { }
15
+ [foo = \{] { }
16
+ [foo = \(] { }
17
+ [foo = yes\:\ (it\'s\ wor k\)] { }
18
+
19
+ \@noat { }
20
+
21
+ h1\\{
22
+ color : \\;
23
+ }
24
+
25
+ [attr = "\;" ] { }
26
+
27
+ .prop {
28
+ \62 olor : red
29
+ }
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ @supports (--element(".minwidth" , { "minWidth" : 300 })) {
2
+ [--self ] {
3
+ background : greenyellow;
4
+ }
5
+ }
6
+
7
+ @supports ({"example" : 1}) {
8
+ * { background : red; }
9
+ }
10
+
11
+ @supports (("example" : 1)) {
12
+ * { background : red; }
13
+ }
14
+
15
+ @supports ([]) {
16
+ * { background : red; }
17
+ }
18
+
19
+ @supports ([color : red ]) {
20
+ * { background: red; }
21
+ }
22
+
23
+ @supports ([[[[[{ - - func(color : { red }) }]]]]]) {
24
+ * { background: red; }
25
+ }
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+
2
+ x Expected ident token at first position in <general-enclosed>
3
+ ,-[$DIR/tests/recovery/at-rule/supports/non-standard-prelude/input.css:7:1]
4
+ 7 | @supports ({"example": 1}) {
5
+ : ^^^^^^^^^^^^^^^^
6
+ `----
7
+
8
+ x Expected ident token at first position in <general-enclosed>
9
+ ,-[$DIR/tests/recovery/at-rule/supports/non-standard-prelude/input.css:11:1]
10
+ 11 | @supports (("example": 1)) {
11
+ : ^^^^^^^^^^^^^^^^
12
+ `----
13
+
14
+ x Expected ident token at first position in <general-enclosed>
15
+ ,-[$DIR/tests/recovery/at-rule/supports/non-standard-prelude/input.css:15:1]
16
+ 15 | @supports ([]) {
17
+ : ^^^^
18
+ `----
19
+
20
+ x Expected ident token at first position in <general-enclosed>
21
+ ,-[$DIR/tests/recovery/at-rule/supports/non-standard-prelude/input.css:19:1]
22
+ 19 | @supports ([color: red]) {
23
+ : ^^^^^^^^^^^^^^
24
+ `----
25
+
26
+ x Expected ident token at first position in <general-enclosed>
27
+ ,-[$DIR/tests/recovery/at-rule/supports/non-standard-prelude/input.css:23:1]
28
+ 23 | @supports ([[[[[{ --func(color: { red }) }]]]]]) {
29
+ : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
+ `----
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
1 commit comments
github-actions[bot] commentedon Oct 27, 2022
Benchmark
es/full/bugs-1
366183
ns/iter (± 36637
)392895
ns/iter (± 68786
)0.93
es/full/minify/libraries/antd
1948103139
ns/iter (± 63621037
)1922527316
ns/iter (± 88131317
)1.01
es/full/minify/libraries/d3
438779909
ns/iter (± 34882646
)413796513
ns/iter (± 31849642
)1.06
es/full/minify/libraries/echarts
1623728382
ns/iter (± 72599388
)1604132745
ns/iter (± 111321316
)1.01
es/full/minify/libraries/jquery
107646934
ns/iter (± 3959842
)107612274
ns/iter (± 19700124
)1.00
es/full/minify/libraries/lodash
135957770
ns/iter (± 14182099
)136298698
ns/iter (± 15076527
)1.00
es/full/minify/libraries/moment
67129457
ns/iter (± 9895927
)65069673
ns/iter (± 3412485
)1.03
es/full/minify/libraries/react
21512068
ns/iter (± 2240942
)21206443
ns/iter (± 379143
)1.01
es/full/minify/libraries/terser
358762233
ns/iter (± 35793756
)341626752
ns/iter (± 34889296
)1.05
es/full/minify/libraries/three
594088565
ns/iter (± 16770006
)572219645
ns/iter (± 45832107
)1.04
es/full/minify/libraries/typescript
3649113147
ns/iter (± 98081415
)3601103658
ns/iter (± 121170943
)1.01
es/full/minify/libraries/victory
853269804
ns/iter (± 10586100
)842227806
ns/iter (± 23873241
)1.01
es/full/minify/libraries/vue
171201767
ns/iter (± 8209519
)169782817
ns/iter (± 10676554
)1.01
es/full/codegen/es3
33366
ns/iter (± 1018
)33262
ns/iter (± 818
)1.00
es/full/codegen/es5
33439
ns/iter (± 933
)33375
ns/iter (± 1583
)1.00
es/full/codegen/es2015
33253
ns/iter (± 2287
)33364
ns/iter (± 2796
)1.00
es/full/codegen/es2016
33446
ns/iter (± 342
)33368
ns/iter (± 30325
)1.00
es/full/codegen/es2017
33322
ns/iter (± 286
)33081
ns/iter (± 769
)1.01
es/full/codegen/es2018
33394
ns/iter (± 423
)33179
ns/iter (± 1269
)1.01
es/full/codegen/es2019
33462
ns/iter (± 735
)33377
ns/iter (± 1876
)1.00
es/full/codegen/es2020
33489
ns/iter (± 1343
)33159
ns/iter (± 461
)1.01
es/full/all/es3
211984460
ns/iter (± 18117518
)196677370
ns/iter (± 14300512
)1.08
es/full/all/es5
199474596
ns/iter (± 19521856
)185033401
ns/iter (± 10006873
)1.08
es/full/all/es2015
155228762
ns/iter (± 6761905
)148883425
ns/iter (± 7283797
)1.04
es/full/all/es2016
155341844
ns/iter (± 8340737
)149315717
ns/iter (± 7324775
)1.04
es/full/all/es2017
154040122
ns/iter (± 23910690
)147362526
ns/iter (± 6851235
)1.05
es/full/all/es2018
152436554
ns/iter (± 13654846
)146226310
ns/iter (± 7411693
)1.04
es/full/all/es2019
151156373
ns/iter (± 9532660
)146119272
ns/iter (± 6986210
)1.03
es/full/all/es2020
144890990
ns/iter (± 9623244
)140461414
ns/iter (± 9738089
)1.03
es/full/parser
744755
ns/iter (± 41547
)724239
ns/iter (± 21811
)1.03
es/full/base/fixer
26024
ns/iter (± 4982
)26055
ns/iter (± 1831
)1.00
es/full/base/resolver_and_hygiene
92872
ns/iter (± 8751
)91677
ns/iter (± 9216
)1.01
serialization of ast node
215
ns/iter (± 6
)214
ns/iter (± 23
)1.00
serialization of serde
219
ns/iter (± 23
)218
ns/iter (± 13
)1.00
This comment was automatically generated by workflow using github-action-benchmark.