Bug 223455 - Web Inspector: support hwb() colors
Summary: Web Inspector: support hwb() colors
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-18 11:04 PDT by Nikita Vasilyev
Modified: 2021-03-20 11:51 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2021-03-18 11:04:07 PDT
- Display color picker for hwb(...)
- Allow to convert to/from hwb(...)
- Autocomplete hwb() function
Comment 1 Radar WebKit Bug Importer 2021-03-18 11:04:17 PDT
<rdar://problem/75580962>
Comment 2 Sam Weinig 2021-03-18 17:48:51 PDT
If there is anything I can expose in WebCore to help this, let me know.
Comment 3 Nikita Vasilyev 2021-03-19 13:49:37 PDT
It would be nice to have DOM API to convert colors between HWB, HSL, RGB (both rgb(1,2,3) and #abc), and keywords (e.g. papayawhip). Currently, Web Inspector duplicates this logic on the front end in https://github.com/WebKit/WebKit/blob/main/Source/WebInspectorUI/UserInterface/Models/Color.js.
Comment 4 Sam Weinig 2021-03-20 11:51:09 PDT
Can the web inspector access things like window.internals? If not, maybe we should expose an object for the inspector and add some helpers on it for this (eventually I would like real DOM APIs for that, but it will take time)