-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Modern CSS color function syntax #8154
Copy link
Copy link
Closed
Labels
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.type:testsIssues about tests that are not correct, should be added, or similarIssues about tests that are not correct, should be added, or similar
Metadata
Metadata
Assignees
Labels
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.type:testsIssues about tests that are not correct, should be added, or similarIssues about tests that are not correct, should be added, or similar
Prettier 2.0.5
Playground link
Input:
Output:
Expected behavior:
Notes:
rgb()with the new syntax instead ofrgba()(which is a legacy function)hsl()with the new syntax instead ofhsla()(which is a legacy function)70%vs0.7degsuffix where applicable, e.g. in the first parameter forhsl()and the last non-alpha parameter forlch(). Again, because this clarifies that the range lies between0-360.color()syntax is not yet supported by the parser, but that's a separate issue.#rrggbba/#rgbahex notation overrgb()notation, or the other way around