Bug 222258 - Add experimental support for CSS Color 5 color-mix()
Summary: Add experimental support for CSS Color 5 color-mix()
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: 221873
  Show dependency treegraph
 
Reported: 2021-02-21 18:54 PST by Sam Weinig
Modified: 2022-05-21 09:47 PDT (History)
9 users (show)

See Also:


Attachments
Patch (83.71 KB, patch)
2021-02-21 19:20 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-02-21 18:54:39 PST
Let's add experimental support for CSS Color 5 color-mix() - https://drafts.csswg.org/css-color-5/#color-mix.

Because the spec doesn't seem quite finished, we should keep this behind an experimental feature flag for now.
Comment 1 Sam Weinig 2021-02-21 19:20:44 PST
Created attachment 421165 [details]
Patch
Comment 2 Sam Weinig 2021-02-21 19:21:42 PST
There are a few FIXMEs in this to work out, and some additional test coverage, especially of hue mixing would be good as well.
Comment 3 Sam Weinig 2021-02-21 19:22:25 PST
I also wonder if we should move the color parsing code to it's own file at this point. It's getting quite involved.
Comment 4 EWS 2021-02-22 09:52:19 PST
Committed r273244: <https://commits.webkit.org/r273244>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421165 [details].
Comment 5 Radar WebKit Bug Importer 2021-02-22 09:53:14 PST
<rdar://problem/74600593>