Bug 92638 - Web Inspector: [Styles] No color swatch for the SVG "fill" and "stroke" property values
Summary: Web Inspector: [Styles] No color swatch for the SVG "fill" and "stroke" prope...
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)
Depends on:
Reported: 2012-07-30 05:23 PDT by Alexander Pavlov (apavlov)
Modified: 2012-07-30 05:51 PDT (History)
10 users (show)

See Also:

Patch (1.92 KB, patch)
2012-07-30 05:31 PDT, Alexander Pavlov (apavlov)
vsevik: review+
apavlov: commit-queue-
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) 2012-07-30 05:23:40 PDT
What steps will reproduce the problem?
1. Have SVG elements in your HTML 
2. Style these elements by defining colors (e.g. "fill" or "stroke")
3. Inspect the page using Developer tools

What is the expected result?
A color swatch is shown displaying the chosen/defined color(s) for the element.

What happens instead?
No color swatch is shown, even though the attribute is treated properly and the element is filled with the defined color. 

While it is not the end of the world to not see the color swatch it would really help when working with styling of elements created by visualization scripts.

Please provide any additional information below. Attach a screenshot if

Note that in the screenshot below I have manually added two attributes to show that the color swatches are shown for some elements but not for others. The page renders without any problems (i.e. with right coloring) without the manually added style elements. 

I believe this issue might be related to http://code.google.com/p/chromium/issues/detail?id=83051 in such a way that the fix for that problem might have had downstream effects disabling swatches in some occasions where it would be useful.

Upstreaming http://code.google.com/p/chromium/issues/detail?id=137017
Comment 1 Alexander Pavlov (apavlov) 2012-07-30 05:31:34 PDT
Created attachment 155269 [details]
Comment 2 Alexander Pavlov (apavlov) 2012-07-30 05:51:24 PDT
Committed r124016: <http://trac.webkit.org/changeset/124016>