Files
test-repo/changelog_unreleased/less/17983.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
459 B
Markdown
Raw Normal View History

2025-10-20 16:37:59 +08:00
#### Keep property/variable accessors tight (#17983 by @kovsu)
<!-- prettier-ignore -->
```less
// Input
.average(@x, @y) {
@result: ((@x + @y) / 2);
}
div {
padding: .average(16px, 50px) [ @result ];
}
// Prettier stable
.average(@x, @y) {
@result: ((@x + @y) / 2);
}
div {
padding: .average(16px, 50px) [ @result];
}
// Prettier main
.average(@x, @y) {
@result: ((@x + @y) / 2);
}
div {
padding: .average(16px, 50px)[@result];
}
```