-
-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(css): reformat issue in comments between compound selectors
- Loading branch information
Showing
12 changed files
with
211 additions
and
40 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
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,39 @@ | ||
foo /* a comment */ | ||
.aRule { | ||
color: red; | ||
} | ||
|
||
foo /* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
foo | ||
|
||
|
||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
/* input */ | ||
foo | ||
|
||
/* a comment */ | ||
|
||
.aRule { | ||
color: red | ||
} | ||
|
||
|
||
|
||
|
||
/* first format */ | ||
foo | ||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} |
100 changes: 100 additions & 0 deletions
100
crates/biome_css_formatter/tests/specs/css/issue_3229.css.snap
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,100 @@ | ||
--- | ||
source: crates/biome_formatter_test/src/snapshot_builder.rs | ||
info: css/issue_3229.css | ||
snapshot_kind: text | ||
--- | ||
# Input | ||
|
||
```css | ||
foo /* a comment */ | ||
.aRule { | ||
color: red; | ||
} | ||
|
||
foo /* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
foo | ||
|
||
|
||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
/* input */ | ||
foo | ||
|
||
/* a comment */ | ||
|
||
.aRule { | ||
color: red | ||
} | ||
|
||
|
||
|
||
|
||
/* first format */ | ||
foo | ||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
``` | ||
|
||
|
||
============================= | ||
|
||
# Outputs | ||
|
||
## Output 1 | ||
|
||
----- | ||
Indent style: Tab | ||
Indent width: 2 | ||
Line ending: LF | ||
Line width: 80 | ||
Quote style: Double Quotes | ||
----- | ||
|
||
```css | ||
foo /* a comment */ .aRule { | ||
color: red; | ||
} | ||
|
||
foo | ||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
foo | ||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
/* input */ | ||
foo | ||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
|
||
/* first format */ | ||
foo | ||
/* a comment */ | ||
|
||
.aRule { | ||
color: red; | ||
} | ||
``` |
1 change: 1 addition & 0 deletions
1
crates/biome_css_formatter/tests/specs/prettier/css/atrule/supports.css.snap
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
1 change: 1 addition & 0 deletions
1
crates/biome_css_formatter/tests/specs/prettier/css/bom/bom.css.snap
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
1 change: 1 addition & 0 deletions
1
crates/biome_css_formatter/tests/specs/prettier/css/comments/custom-properties.css.snap
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
1 change: 1 addition & 0 deletions
1
crates/biome_css_formatter/tests/specs/prettier/css/front-matter/empty.css.snap
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
1 change: 1 addition & 0 deletions
1
crates/biome_css_formatter/tests/specs/prettier/css/yaml/comment_after.css.snap
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.