- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 29 Apr 2009 06:17:21 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv13845
Modified Files:
Overview.html
Log Message:
Disable shadows when they're at their default values. (whatwg r3023)
Index: Overview.html
===================================================================
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:17:29 UTC