RESOLVED FIXED 204085
Web Inspector: "aqua" and "fuchsia" aren't detected as colors
https://bugs.webkit.org/show_bug.cgi?id=204085
Summary Web Inspector: "aqua" and "fuchsia" aren't detected as colors
Nikita Vasilyev
Reported 2019-11-11 14:50:30 PST
That's the only color keyword that is defined in https://www.w3.org/TR/css-color-4/#named-colors but missing in the Web Inpector color dictionary.
Attachments
Patch (1.16 KB, patch)
2019-11-11 14:51 PST, Nikita Vasilyev
hi: review+
Patch (1.46 KB, patch)
2019-11-13 13:41 PST, Nikita Vasilyev
no flags
Nikita Vasilyev
Comment 1 2019-11-11 14:51:19 PST
Devin Rousso
Comment 2 2019-11-13 10:29:48 PST
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.
Nikita Vasilyev
Comment 3 2019-11-13 13:41:48 PST
WebKit Commit Bot
Comment 4 2019-11-13 20:04:23 PST
Comment on attachment 383489 [details] Patch Clearing flags on attachment: 383489 Committed r252448: <https://trac.webkit.org/changeset/252448>
WebKit Commit Bot
Comment 5 2019-11-13 20:04:25 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6 2019-11-13 20:05:22 PST
Note You need to log in before you can comment on or make changes to this bug.