WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 40273
41246
Canvas: "currentColor" should inherit the canvas element's color
https://bugs.webkit.org/show_bug.cgi?id=41246
Summary
Canvas: "currentColor" should inherit the canvas element's color
Andreas Kling
Reported
2010-06-26 02:18:19 PDT
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
Attachments
Add attachment
proposed patch, testcase, etc.
Andreas Kling
Comment 1
2010-06-26 02:19:20 PDT
*** This bug has been marked as a duplicate of
bug 40273
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug