ASSIGNED223455
Web Inspector: support hwb() colors
https://bugs.webkit.org/show_bug.cgi?id=223455
Summary Web Inspector: support hwb() colors
Nikita Vasilyev
Reported 2021-03-18 11:04:07 PDT
- Display color picker for hwb(...) - Allow to convert to/from hwb(...) - Autocomplete hwb() function
Attachments
Radar WebKit Bug Importer
Comment 1 2021-03-18 11:04:17 PDT
Sam Weinig
Comment 2 2021-03-18 17:48:51 PDT
If there is anything I can expose in WebCore to help this, let me know.
Nikita Vasilyev
Comment 3 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.
Sam Weinig
Comment 4 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)
Note You need to log in before you can comment on or make changes to this bug.