Skip to content

Commit

Permalink
tests: add content-breaks-when-attr-breaks test
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Feb 7, 2025
1 parent 6e4b40e commit bfc1d92
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div
test="content must break if attributes break"
explanation="This group of attributes should break and become multiline."
details="The content must do the same, despite it being short."
>short content</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
source: crates/biome_formatter_test/src/snapshot_builder.rs
info: content-breaks-when-attr-breaks.html
---
# Input

```html
<div
test="content must break if attributes break"
explanation="This group of attributes should break and become multiline."
details="The content must do the same, despite it being short."
>short content</div>
```


=============================

# Outputs

## Output 1

-----
Indent style: Tab
Indent width: 2
Line ending: LF
Line width: 80
Attribute Position: Auto
Bracket same line: false
Whitespace sensitivity: css
Indent script and style: false
-----

```html
<div
test="content must break if attributes break"
explanation="This group of attributes should break and become multiline."
details="The content must do the same, despite it being short."
>
short content
</div>
```

0 comments on commit bfc1d92

Please sign in to comment.