-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 3.2.3
Playground link
--parser css
Input:
h1 {
--background: blue;
--ON: initial /* ON */;
--OFF: /* OFF */;
--custom-prop: var(--OFF)
}
Output:
h1 {
--background: blue;
--ON: initial /* ON */;
--OFF: /* OFF *;
--custom-prop: var(--OFF);
}
Expected output:
h1 {
--background: blue;
--ON: initial /* ON */;
--OFF: /* OFF */;
--custom-prop: var(--OFF);
}
Why?
In this case, the custom property without a value is indented to a point where the ending slash (of the --OFF property comment) gets removed and opens up the comment, essentially commenting out the following code.
jacobrask, fbjaras, kachkaev, alizeait and guivr
Metadata
Metadata
Assignees
Labels
help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:css/scss/lessIssues affecting CSS, Less or SCSSIssues affecting CSS, Less or SCSSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.