-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSpriority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Description
Prettier 1.15.3
Playground link
--parser scss
Input:
.result-container {
@include transition(min-height ($spacer/2) ease-in-out);
}
Output:
.result-container {
@include transition(min-height($spacer/2) ease-in-out);
}
Expected behavior:
That space between min-height
and the math should be left alone. With the space removed, this unfortunately results in some invalid CSS as its now treated as a CSS function instead of the property name. This results in something similar to the the following CSS when compiled by Sass
// Incorrect
.result-container {
transition: min-height(50px) ease-in-out;
}
pspi, ExE-Boss and lipis
Metadata
Metadata
Assignees
Labels
lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSpriority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!