Bug 223457

Summary: Web Inspector: color-mix() should have color swatch
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: ASSIGNED ---    
Severity: Normal CC: inspector-bugzilla-changes, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=222258
https://bugs.webkit.org/show_bug.cgi?id=223458
Attachments:
Description Flags
[Image] color-mix current behavior none

Description Nikita Vasilyev 2021-03-18 11:23:19 PDT
I propose to add a read-only color swatch before `color-mix`

    [ ] color-mix(var(--brand) 40%, white)
     ^
     resulting color
Comment 1 Radar WebKit Bug Importer 2021-03-18 11:23:32 PDT
<rdar://problem/75581952>
Comment 2 Sam Weinig 2021-03-18 17:47:54 PDT
Can we add swatches for the input colors too?
Comment 3 Nikita Vasilyev 2021-03-19 13:25:17 PDT
Created attachment 423766 [details]
[Image] color-mix current behavior

(In reply to Sam Weinig from comment #2)
> Can we add swatches for the input colors too?

We already have them! Unless I misunderstood you.