Bug 106767 - Web Inspector: [Styles] HTML color names not converted to RGB/HEX/HSL when "Color format" feature used
Summary: Web Inspector: [Styles] HTML color names not converted to RGB/HEX/HSL when "C...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 01:53 PST by Alexander Pavlov (apavlov)
Modified: 2013-01-14 02:14 PST (History)
8 users (show)

See Also:


Attachments
Patch (1.75 KB, patch)
2013-01-14 02:07 PST, Alexander Pavlov (apavlov)
vsevik: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2013-01-14 01:53:00 PST
Steps to reproduce the problem:
1. inspect an element that has a color defined using HTML colors (ie. 'red', 'crimson', 'blue')
2. Use 'color format' feature in the top right corner of 'Sytles' pane to change the format to any of HEX/RGB/HSL

What is the expected behavior?
Named colors should be converted to HEX/RGB/HSL (ie. crimson -> #DC143C).

What went wrong?
Colors defined using HTML color names are not converted (while all other colors are).

Upstreaming https://code.google.com/p/chromium/issues/detail?id=169217
Comment 1 Alexander Pavlov (apavlov) 2013-01-14 02:07:43 PST
Created attachment 182530 [details]
Patch
Comment 2 Alexander Pavlov (apavlov) 2013-01-14 02:14:50 PST
Committed r139597: <http://trac.webkit.org/changeset/139597>