[Webkit-unassigned] [Bug 38102] New: Wrong handling of currentColor on inherit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 25 23:15:47 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38102

           Summary: Wrong handling of currentColor on inherit
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://dev.w3.org/SVG/profiles/1.1F2/test/harness/html
                    Object/color-prop-05-t.html
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: krit at webkit.org
                CC: zimmermann at kde.org


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list