Bug 233527 - [CSS Color 5] Update color-mix() to latest spec (again)
Summary: [CSS Color 5] Update color-mix() to latest spec (again)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-26 11:06 PST by Sam Weinig
Modified: 2021-11-28 10:56 PST (History)
12 users (show)

See Also:


Attachments
WIP (56.02 KB, patch)
2021-11-27 11:12 PST, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (100.96 KB, patch)
2021-11-27 20:51 PST, Sam Weinig
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2021-11-26 11:06:44 PST
color-mix() has been updated with support for specific hue interpolation methods based on the new <color-interpolation-method> construction https://drafts.csswg.org/css-color-4/#color-interpolation-method.

Since <color-interpolation-method> is also been adopted for specifying CSS gradient interpolation (https://drafts.csswg.org/css-images-4/#gradients) so it would be good to make sure it is useable for both.
Comment 1 Sam Weinig 2021-11-27 11:12:37 PST Comment hidden (obsolete)
Comment 2 Sam Weinig 2021-11-27 20:51:45 PST
Created attachment 445230 [details]
Patch
Comment 3 Sam Weinig 2021-11-27 20:52:56 PST
This addresses most of the changes. Still not addressed (and will be handled separately):

- None/missing components (we need to support them first)
- Alpha premultiplication (I need a bit more clarity on this)
Comment 4 EWS 2021-11-28 10:55:11 PST
Committed r286196 (244578@main): <https://commits.webkit.org/244578@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 445230 [details].
Comment 5 Radar WebKit Bug Importer 2021-11-28 10:56:20 PST
<rdar://problem/85788950>