Bug 38102 - Wrong handling of currentColor on inherit
Summary: Wrong handling of currentColor on inherit
Status: RESOLVED DUPLICATE of bug 54800
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://dev.w3.org/SVG/profiles/1.1F2/...
: 41848 (view as bug list)
Depends on:
Reported: 2010-04-25 23:15 PDT by Dirk Schulze
Modified: 2011-03-01 00:35 PST (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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 ***