-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(css): Allow empty
@media
at-rule (#3404)
- Loading branch information
1 parent
a143e96
commit 75a14f9
Showing
10 changed files
with
87 additions
and
11 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
5 changes: 5 additions & 0 deletions
5
crates/swc_css_codegen/tests/fixture/at-rules/media/3/input.css
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@media { | ||
div { | ||
color: red | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
crates/swc_css_codegen/tests/fixture/at-rules/media/3/output.css
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
@media {div {color: red}} |
1 change: 1 addition & 0 deletions
1
crates/swc_css_codegen/tests/fixture/at-rules/media/3/output.min.css
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
@media{div{color:red}} |
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
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
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
75a14f9
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
full_es2015
198488022
ns/iter (± 16221027
)216145441
ns/iter (± 11593247
)0.92
full_es2016
207563248
ns/iter (± 26300078
)232522387
ns/iter (± 12494375
)0.89
full_es2017
223464138
ns/iter (± 23902020
)232377488
ns/iter (± 13594701
)0.96
full_es2018
215882513
ns/iter (± 26337035
)231304684
ns/iter (± 14348681
)0.93
full_es2019
213246685
ns/iter (± 19842885
)229908377
ns/iter (± 11795294
)0.93
full_es2020
185418499
ns/iter (± 16434662
)198903844
ns/iter (± 11178999
)0.93
full_es3
258847015
ns/iter (± 32928689
)279973758
ns/iter (± 16191672
)0.92
full_es5
263781241
ns/iter (± 42510880
)288946924
ns/iter (± 17263110
)0.91
parser
860119
ns/iter (± 96221
)906178
ns/iter (± 113355
)0.95
This comment was automatically generated by workflow using github-action-benchmark.