[Webkit-unassigned] [Bug 41246] New: Canvas: "currentColor" should inherit the canvas element's color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 26 02:18:19 PDT 2010


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

           Summary: Canvas: "currentColor" should inherit the canvas
                    element's color
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: HTML5
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: andreas.kling at nokia.com


>From HTML5 spec:

Whenever the CSS value currentColor is used as a color in this API, the "computed value of the 'color' property" for the purposes of determining the computed value of the currentColor keyword is the computed value of the 'color' property on the element in question at the time that the color is specified (e.g. when the appropriate attribute is set, or when the method is called; not when the color is rendered or otherwise used). If the computed value of the 'color' property is undefined for a particular case (e.g. because the element is not in a Document), then the "computed value of the 'color' property" for the purposes of determining the computed value of the currentColor keyword is fully opaque black.

Fixing this would make us pass the following in-tree tests:
canvas/philip/tests/2d.fillStyle.parse.current.basic.html
canvas/philip/tests/2d.fillStyle.parse.current.changed.html
canvas/philip/tests/2d.fillStyle.parse.current.removed.html

Spec link:
http://www.whatwg.org/specs/web-apps/current-work/#2dcontext

-- 
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