<?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>15265</bug_id>
          
          <creation_ts>2007-09-23 14:53:26 -0700</creation_ts>
          <short_desc>Canvas shadows not rendered unless shadowBlur/OffsetX/OffsetY set</short_desc>
          <delta_ts>2010-08-21 05:39:12 -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>Layout and Rendering</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Server 2003</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Taylor">excors</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kling</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Taylor">excors</who>
    <bug_when>2007-09-23 14:53:26 -0700</bug_when>
    <thetext>When shadowColor is set to some colour and a shape is rendered, the shadow is not drawn iff shadowBlur = shadowOffsetX = shadowOffsetY = 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82</commentid>
    <comment_count>1</comment_count>
      <attachid>16363</attachid>
    <who name="Philip Taylor">excors</who>
    <bug_when>2007-09-23 14:56:25 -0700</bug_when>
    <thetext>Created attachment 16363
test case

This should draw the shadow first, then draw the rectangle on top, with the XOR compositing resulting in a transparent canvas.

If you set shadowBlur or shadowOffset{X,Y} before drawing the shadow, then it works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93491</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-09-30 20:30:58 -0700</bug_when>
    <thetext>What does the HTML5 spec say about this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>267558</commentid>
    <comment_count>3</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-08-21 05:39:12 -0700</bug_when>
    <thetext>Quoth HTML5:

&quot;Shadows are only drawn if the opacity component of the alpha component of the color of shadowColor is non-zero and either the shadowBlur is non-zero, or the shadowOffsetX is non-zero, or the shadowOffsetY is non-zero.&quot;

http://www.whatwg.org/specs/web-apps/current-work/#shadows</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16363</attachid>
            <date>2007-09-23 14:56:25 -0700</date>
            <delta_ts>2007-09-23 14:56:25 -0700</delta_ts>
            <desc>test case</desc>
            <filename>default-shadow.html</filename>
            <type>text/html</type>
            <size>425</size>
            <attacher name="Philip Taylor">excors</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+Cjx0aXRsZT5jYW52YXMgc2hhZG93IHJlbmRlcmluZyB3aXRoIG5vIGJs
dXIvb2Zmc2V0PC90aXRsZT4KPHA+VGhpcyBzaG91bGQgYmUgZ3JlZW46CjxwPjxjYW52YXMgd2lk
dGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGlkPSJjIiBzdHlsZT0iYmFja2dyb3VuZDogbGltZSI+PC9j
YW52YXM+CjxzY3JpcHQ+CndpbmRvdy5vbmxvYWQgPSBmdW5jdGlvbiAoKSB7CiAgICB2YXIgY3R4
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2MnKS5nZXRDb250ZXh0KCcyZCcpOwoKICAgIGN0
eC5nbG9iYWxDb21wb3NpdGVPcGVyYXRpb24gPSAneG9yJzsKICAgIGN0eC5zaGFkb3dDb2xvciA9
ICcjZjAwJzsKICAgIGN0eC5maWxsU3R5bGUgPSAnI2YwMCc7CiAgICBjdHguZmlsbFJlY3QoMCwg
MCwgMTAwLCAxMDApOwp9Cjwvc2NyaXB0Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>