<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>41246</bug_id>
          
          <creation_ts>2010-06-26 02:18:19 -0700</creation_ts>
          <short_desc>Canvas: &quot;currentColor&quot; should inherit the canvas element&apos;s color</short_desc>
          <delta_ts>2010-06-26 02:19:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>40273</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Kling">kling</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>243349</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-06-26 02:18:19 -0700</bug_when>
    <thetext>From HTML5 spec:

Whenever the CSS value currentColor is used as a color in this API, the &quot;computed value of the &apos;color&apos; property&quot; for the purposes of determining the computed value of the currentColor keyword is the computed value of the &apos;color&apos; 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 &apos;color&apos; property is undefined for a particular case (e.g. because the element is not in a Document), then the &quot;computed value of the &apos;color&apos; property&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>243350</commentid>
    <comment_count>1</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-06-26 02:19:20 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 40273 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>