Bug 38102

Summary: Wrong handling of currentColor on inherit
Product: WebKit Reporter: Dirk Schulze <krit>
Component: SVGAssignee: Nobody <webkit-unassigned>
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

Description Dirk Schulze 2010-04-25 23:15:47 PDT
The SVG in the link has following example:

<g fill="currentColor" color="red">
    <rect x="120" y="60" width="150" height="150" color="blue"/>

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.
Comment 1 Dirk Schulze 2010-07-08 10:39:30 PDT
*** Bug 41848 has been marked as a duplicate of this bug. ***
Comment 2 Nikolas Zimmermann 2011-03-01 00:35:21 PST

*** This bug has been marked as a duplicate of bug 54800 ***