feat: implementation of contrast-color() from the CSS Color 5#1160
feat: implementation of contrast-color() from the CSS Color 5#1160yisibl wants to merge 1 commit intoparcel-bundler:masterfrom
contrast-color() from the CSS Color 5#1160Conversation
668be7e to
50c7e88
Compare
This implementation solely parses functions, enabling color values within `contrast-color()` to be compressed or simplified. Spec: https://drafts.csswg.org/css-color-5/#contrast-color `contrast-color() = contrast-color( <color> )` Part of parcel-bundler#99
50c7e88 to
3ec50a7
Compare
|
@devongovett PTAL |
|
I think |
|
This can be done in the next PR. For this PR, I want to focus on implementing the syntax-level parsing. However, I believe the algorithm currently defined for |
It would change what gets stored in the AST though right? We wouldn't need a |
The former name of
contrast-color()wascolor-contrast(). In CSS Color 5, its syntax has been simplified to:contrast-color() = contrast-color( <color> )Spec: https://drafts.csswg.org/css-color-5/#contrast-color
This function is part of interop-2026 and is already supported in Firefox 146、Safari 26 and Chrome 147.0.7707.0(experimental)
This implementation solely parses functions, enabling color values within
contrast-color()to be compressed or simplified.Part of #99