-
Notifications
You must be signed in to change notification settings - Fork 3k
Canvas2D: Add srgb-linear and display-p3-linear to PredefinedColorSpace enum #11529
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
base: main
Are you sure you want to change the base?
Conversation
b22c933 to
941adab
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.
OP needs filling out. You can consider WebKit interested.
I think we should also have a follow-up issue on formalizing "color space" better. We say these values map to CSS-defined color spaces, but most of the "color space" concepts say they hold a PredefinedColorSpace as value, which seems wrong. We should translate from the string to the CSS color spaces and then use those throughout.
We'll also need tests for all the various things taking a PredefinedColorSpace.
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.
What makes this requirement obsolete?
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.
Good catch -- this was a merge conflict badly resolved (this text had moved).
|
I've updated the OP and added tests for the HTML APIs that use I've limited this change to only add the In terms of replacing |
|
I wasn't thinking of supporting more color spaces. I was mainly thinking of a mostly editorial change where we convert a |
Canvas2D: Add srgb-linear and display-p3-linear to PredefinedColorSpace enum
(See WHATWG Working Mode: Changes for more details.)
/canvas.html ( diff )
/infrastructure.html ( diff )