Summary: | Web Inspector: "aqua" and "fuchsia" aren't detected as colors | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nikita Vasilyev <nvasilyev> | ||||||
Component: | Web Inspector | Assignee: | Nikita Vasilyev <nvasilyev> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, hi, inspector-bugzilla-changes, timothy, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Nikita Vasilyev
2019-11-11 14:50:30 PST
Created attachment 383303 [details]
Patch
Comment on attachment 383303 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=383303&action=review r=me > Source/WebInspectorUI/UserInterface/Models/Color.js:745 > + "aqua": [0, 255, 255, 1], We're also missing `fuchsia`, which is one of the original HTML colors 🤦♂️: ``` "fuchsia": [255, 0, 255, 1], ``` Interestingly, both `aqua` and `fuchsia` have alternate names in CSS, respectively being `cyan` and `magenta`. This doesn't look to be an issue, other than that we'll instead always prefer `aqua` over `cyan` (same with `fuchsia` over `magenta`) when generating CSS color keyword strings simply because they're sorted alphabetically. Created attachment 383489 [details]
Patch
Comment on attachment 383489 [details] Patch Clearing flags on attachment: 383489 Committed r252448: <https://trac.webkit.org/changeset/252448> All reviewed patches have been landed. Closing bug. |