-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(css/parser): Fix parsing of nested rules (#6563)
- Loading branch information
1 parent
9287709
commit a1fe907
Showing
8 changed files
with
557 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c_css_parser/tests/recovery/at-rule/keyframes/keyframe-broke-and-normal/output.swc-stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
crates/swc_css_parser/tests/recovery/at-rule/keyframes/keyframe-number/output.swc-stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,9 @@ a { | |
color: red; | ||
} | ||
} | ||
|
||
@keyframes box { | ||
<!-- --> | ||
50% { left: 0; } | ||
90% { left: 300px; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a1fe907
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/bugs-1
359971
ns/iter (± 23019
)422864
ns/iter (± 11280
)0.85
es/full/minify/libraries/antd
2196314594
ns/iter (± 66161949
)2323894819
ns/iter (± 20013410
)0.95
es/full/minify/libraries/d3
493222863
ns/iter (± 18083842
)483346882
ns/iter (± 2805590
)1.02
es/full/minify/libraries/echarts
1907008624
ns/iter (± 131210976
)1979599222
ns/iter (± 63362725
)0.96
es/full/minify/libraries/jquery
136062858
ns/iter (± 7888797
)135925412
ns/iter (± 3365155
)1.00
es/full/minify/libraries/lodash
160811751
ns/iter (± 16879542
)152847897
ns/iter (± 2225906
)1.05
es/full/minify/libraries/moment
81001733
ns/iter (± 3240327
)78125952
ns/iter (± 1218335
)1.04
es/full/minify/libraries/react
27389221
ns/iter (± 3118727
)26838248
ns/iter (± 313151
)1.02
es/full/minify/libraries/terser
405710691
ns/iter (± 22309499
)370734751
ns/iter (± 11264611
)1.09
es/full/minify/libraries/three
739145826
ns/iter (± 36762061
)681259342
ns/iter (± 29553903
)1.08
es/full/minify/libraries/typescript
4313807563
ns/iter (± 110349907
)4323561188
ns/iter (± 498139936
)1.00
es/full/minify/libraries/victory
1077474619
ns/iter (± 56314333
)1020244719
ns/iter (± 22256982
)1.06
es/full/minify/libraries/vue
198380052
ns/iter (± 7685042
)193502239
ns/iter (± 1648757
)1.03
es/full/codegen/es3
37570
ns/iter (± 5536
)40228
ns/iter (± 1253
)0.93
es/full/codegen/es5
36696
ns/iter (± 5204
)40245
ns/iter (± 941
)0.91
es/full/codegen/es2015
38337
ns/iter (± 6759
)40396
ns/iter (± 1005
)0.95
es/full/codegen/es2016
37683
ns/iter (± 5071
)40610
ns/iter (± 1889
)0.93
es/full/codegen/es2017
38927
ns/iter (± 6912
)40382
ns/iter (± 596
)0.96
es/full/codegen/es2018
37625
ns/iter (± 6874
)40306
ns/iter (± 440
)0.93
es/full/codegen/es2019
36869
ns/iter (± 5723
)40558
ns/iter (± 1204
)0.91
es/full/codegen/es2020
35703
ns/iter (± 6496
)40401
ns/iter (± 3637
)0.88
es/full/all/es3
218431113
ns/iter (± 18250701
)230059006
ns/iter (± 9556870
)0.95
es/full/all/es5
211562804
ns/iter (± 21827441
)217676489
ns/iter (± 6298302
)0.97
es/full/all/es2015
165678952
ns/iter (± 15929758
)175986654
ns/iter (± 4728969
)0.94
es/full/all/es2016
162469036
ns/iter (± 12681425
)175797872
ns/iter (± 5283379
)0.92
es/full/all/es2017
164067102
ns/iter (± 24357262
)174446317
ns/iter (± 5959674
)0.94
es/full/all/es2018
153599284
ns/iter (± 10474356
)171502661
ns/iter (± 4854162
)0.90
es/full/all/es2019
192345523
ns/iter (± 23336258
)170950144
ns/iter (± 5509598
)1.13
es/full/all/es2020
158220153
ns/iter (± 16592820
)164553031
ns/iter (± 6041962
)0.96
es/full/parser
818623
ns/iter (± 121234
)865801
ns/iter (± 69938
)0.95
es/full/base/fixer
29346
ns/iter (± 3712
)32351
ns/iter (± 503
)0.91
es/full/base/resolver_and_hygiene
97534
ns/iter (± 19544
)110498
ns/iter (± 2066
)0.88
serialization of ast node
230
ns/iter (± 46
)242
ns/iter (± 8
)0.95
serialization of serde
291
ns/iter (± 53
)259
ns/iter (± 15
)1.12
This comment was automatically generated by workflow using github-action-benchmark.