Preserve empty lines after function calls in parenthesized values (#19960)

This commit is contained in:
Konv Suu authored and GitHub committed 2026-09-01 11:21:52 +08:00
1 parent 6fa07d46ea
commit 5220adba96
8 files changed
+300

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
#### Preserve empty lines after function calls in parenthesized values (#19960 by @kovsu)
<!-- prettier-ignore -->
```css
/* Input */
a {
background: linear-gradient(
to right,
rgba(0, 0, 0, 0.5) calc(50% - 1px),
transparent calc(50% + 1px)
);
}
/* Prettier stable */
a {
background: linear-gradient(
to right,
rgba(0, 0, 0, 0.5) calc(50% - 1px),
transparent calc(50% + 1px)
);
}
/* Prettier main */
a {
background: linear-gradient(
to right,
rgba(0, 0, 0, 0.5) calc(50% - 1px),
transparent calc(50% + 1px)
);
}
```