--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: css/yaml/only_comments.css --- # Input ```css --- # comment 1 # comment 2 # comment 3 --- a { color: red; } ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1,7 +1,10 @@ --- -# comment 1 -# comment 2 -# comment 3 +# comment +1 +# comment +2 +# comment +3 --- a { ``` # Output ```css --- # comment 1 # comment 2 # comment 3 --- a { color: red; } ``` # Errors ``` only_comments.css:1:1 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a qualified rule, or an at rule but instead found '---'. > 1 │ --- │ ^^^ 2 │ # comment 1 3 │ # comment 2 i Expected a qualified rule, or an at rule here. > 1 │ --- │ ^^^ 2 │ # comment 1 3 │ # comment 2 only_comments.css:2:11 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a compound selector but instead found '1'. 1 │ --- > 2 │ # comment 1 │ ^ 3 │ # comment 2 4 │ # comment 3 i Expected a compound selector here. 1 │ --- > 2 │ # comment 1 │ ^ 3 │ # comment 2 4 │ # comment 3 only_comments.css:3:11 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a compound selector but instead found '2'. 1 │ --- 2 │ # comment 1 > 3 │ # comment 2 │ ^ 4 │ # comment 3 5 │ --- i Expected a compound selector here. 1 │ --- 2 │ # comment 1 > 3 │ # comment 2 │ ^ 4 │ # comment 3 5 │ --- only_comments.css:4:11 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected a compound selector but instead found '3'. 2 │ # comment 1 3 │ # comment 2 > 4 │ # comment 3 │ ^ 5 │ --- 6 │ i Expected a compound selector here. 2 │ # comment 1 3 │ # comment 2 > 4 │ # comment 3 │ ^ 5 │ --- 6 │ ```