-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow CSS Color Module Level 5 #1454
Conversation
I'm fine with merging this earlier than it works in browsers, since we're just "passing colors through". When it works, your second example will be very useful for dark mode (just stating the obvious). color-mix is still waiting for firefox, it seems. (For lch() I couldn't find the additional syntax on caniuse.) |
This looks ready — it just needs test. The lack of browser support for level 5 shouldn’t be a blocker because this is also adding support for level 4. |
0b7b5e9
to
a0bf747
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p3 colors yay!!
* allow CSS Color Module Level 5 * add tests
Ref. https://www.w3.org/TR/css-color-5/
Allows a variety of new ways of specifying colors, including mixing colors:
And relative colors:
Though, I can’t really seem to get the latter to work, so probably we should leave this as a draft until it works.
Fixes #1851.