Disable shadows when they're at their default values. (whatwg r3023)

Disable shadows when they're at their default values. (whatwg r3023)

shadowBlur
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2184.html#dom-context-2d-shadowblur
Shadows are only drawn if
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2184.html#when-shadows-are-drawn
4.8.11.1.12 Drawing model
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2184.html#drawing-model

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2183&r2=1.2184&f=h
http://html5.org/tools/web-apps-tracker?from=3022&to=3023

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2183
retrieving revision 1.2184
diff -u -d -r1.2183 -r1.2184
--- Overview.html 29 Apr 2009 04:34:35 -0000 1.2183
+++ Overview.html 29 Apr 2009 06:17:18 -0000 1.2184
@@ -20642,7 +20642,15 @@
   value is negative, infinite or NaN, in which case the new value must
   be ignored.</p>
 
-  <p>When shadows are drawn, they must be rendered as follows:</p>
+  <p><dfn id="when-shadows-are-drawn" title="when shadows are drawn">Shadows are only drawn
+  if</dfn> either the opacity component of the alpha component of the
+  color of <code title="dom-context-2d-shadowColor"><a href="#dom-context-2d-shadowcolor">shadowColor</a></code>
+  is non-zero, or the <code title="dom-context-2d-shadowBlur"><a href="#dom-context-2d-shadowblur">shadowBlur</a></code> is non-zero, or
+  the <code title="dom-context-2d-shadowOffsetX"><a href="#dom-context-2d-shadowoffsetx">shadowOffsetX</a></code>
+  is non-zero, or the <code title="dom-context-2d-shadowOffsetY"><a href="#dom-context-2d-shadowoffsety">shadowOffsetY</a></code> is
+  non-zero.</p>
+
+  <p><a href="#when-shadows-are-drawn">When shadows are drawn</a>, they must be rendered as follows:</p>
 
   <ol><li> <p>Let <var title="">A</var> be the source image for which a
    shadow is being created.</p> </li>
@@ -21989,18 +21997,19 @@
    and the stroke must itself also be subjected to the current
    transformation matrix.</li>
 
-   <li><p>Render the shadow from image <var title="">A</var>, using
-   the current shadow styles, creating image <var title="">B</var>.</li>
+   <li><p><a href="#when-shadows-are-drawn">When shadows are drawn</a>, render the shadow from
+   image <var title="">A</var>, using the current shadow styles,
+   creating image <var title="">B</var>.</li>
 
-   <li><p>Multiply the alpha component of every pixel in <var title="">B</var> by <code title="dom-context-2d-globalAlpha"><a href="#dom-context-2d-globalalpha">globalAlpha</a></code>.</li>
+   <li><p><a href="#when-shadows-are-drawn">When shadows are drawn</a>, multiply the alpha
+   component of every pixel in <var title="">B</var> by <code title="dom-context-2d-globalAlpha"><a href="#dom-context-2d-globalalpha">globalAlpha</a></code>.</li>
 
-   <li><p>Within the clipping region, composite <var title="">B</var>
-   over the current canvas bitmap using the current composition
-   operator.</li>
+   <li><p><a href="#when-shadows-are-drawn">When shadows are drawn</a>, composite <var title="">B</var> within the clipping region over the current canvas
+   bitmap using the current composition operator.</li>
 
    <li><p>Multiply the alpha component of every pixel in <var title="">A</var> by <code title="dom-context-2d-globalAlpha"><a href="#dom-context-2d-globalalpha">globalAlpha</a></code>.</li>
 
-   <li><p>Within the clipping region, composite <var title="">A</var>
+   <li><p>Composite <var title="">A</var> within the clipping region
    over the current canvas bitmap using the current composition
    operator.</li>

Received on Wednesday, 29 April 2009 06:19:31 UTC