Bug 205976

Summary: Web Inspector: suggest "color()" when defining color in CSS value
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, hi, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
hi: review+
Patch none

Description Nikita Vasilyev 2020-01-08 17:30:20 PST
Suggest "color()" the same way we suggest "rgb()" or "hsl()".
Comment 1 Nikita Vasilyev 2020-01-08 17:31:56 PST
Created attachment 387169 [details]
Patch
Comment 2 Devin Rousso 2020-01-08 18:18:41 PST
Comment on attachment 387169 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=387169&action=review

r=me

> Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js:314
> +    "wheat", "whitesmoke", "yellowgreen", "rgb()", "rgba()", "hsl()", "hsla()", "color()"

Style: please add a trailing comma
Comment 3 Nikita Vasilyev 2020-01-09 16:38:39 PST
Created attachment 387289 [details]
Patch
Comment 4 WebKit Commit Bot 2020-01-09 17:24:33 PST
Comment on attachment 387289 [details]
Patch

Clearing flags on attachment: 387289

Committed r254316: <https://trac.webkit.org/changeset/254316>
Comment 5 WebKit Commit Bot 2020-01-09 17:24:35 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2020-01-09 17:25:18 PST
<rdar://problem/58464614>