-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Update chromatic adaptation matrices to higher precision #1179
Update chromatic adaptation matrices to higher precision #1179
Conversation
romainmenke
commented
Nov 22, 2023
•
edited
Loading
edited
- [css-color-4] Linear Bradford matrices are inexact w3c/csswg-drafts#9607
- Update Oklab matrices for better 64 bit conversion color-js/color.js#357
background-image: linear-gradient(rgb(245, 137, 137) 0%, rgb(245, 133, 166), rgb(244, 129, 198), rgb(243, 124, 231), rgb(218, 120, 242), rgb(179, 116, 241), rgb(137, 111, 240), rgb(107, 120, 240), rgb(103, 157, 239), rgb(99, 196, 238), rgb(94, 237, 237) 100%); | ||
background-image: linear-gradient(rgb(245, 137, 137) 0%, rgb(245, 166, 133), rgb(244, 198, 129), rgb(243, 231, 124), rgb(218, 242, 120), rgb(179, 241, 116), rgb(137, 240, 111), rgb(107, 240, 120), rgb(103, 239, 157), rgb(99, 238, 196), rgb(94, 237, 237) 100%); |
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.
longer
goes around the hue wheel in the different direction because rounding now favors this.
The new output matches Chrome Canary.
(To the best of my knowledge Chrome currently has the best implementation of everything color.)
…er-precision--adaptable-keel-billed-toucan-7f743fdf79
…n--adaptable-keel-billed-toucan-7f743fdf79' of https://github.com/csstools/postcss-plugins into update-chromatic-adaptation-matrices-to-higher-precision--adaptable-keel-billed-toucan-7f743fdf79
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.
LGTM! Thanks for adding this!