Bug 38102
Summary: | Wrong handling of currentColor on inherit | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dirk Schulze <krit> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | zherczeg, zimmermann |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 | ||
URL: | http://dev.w3.org/SVG/profiles/1.1F2/test/harness/htmlObject/color-prop-05-t.html |
Dirk Schulze
The SVG in the link has following example:
<g fill="currentColor" color="red">
<rect x="120" y="60" width="150" height="150" color="blue"/>
</g>
Our current implementation inherits the 'fill' property of the <g> element: 'currentColor'. Our PaintServer see the value 'currentColor' for 'fill' on drawing the rect. It takes the value in 'color' of the rect, instead of the <g> element. This is not the expected behavior.
The relevant code is here: http://trac.webkit.org/browser/trunk/WebCore/rendering/RenderSVGResource.cpp#L97
The same issue for stroke.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Dirk Schulze
*** Bug 41848 has been marked as a duplicate of this bug. ***
Nikolas Zimmermann
*** This bug has been marked as a duplicate of bug 54800 ***