[html5] r4158 - [e] (0) Clarify that everything in canvas happens with infinite bitmaps.

whatwg at whatwg.org whatwg at whatwg.org
Sat Oct 17 22:53:10 PDT 2009


Author: ianh
Date: 2009-10-17 22:53:09 -0700 (Sat, 17 Oct 2009)
New Revision: 4158

Modified:
   complete.html
   index
   source
Log:
[e] (0) Clarify that everything in canvas happens with infinite bitmaps.

Modified: complete.html
===================================================================
--- complete.html	2009-10-18 03:17:25 UTC (rev 4157)
+++ complete.html	2009-10-18 05:53:09 UTC (rev 4158)
@@ -25725,8 +25725,9 @@
 
   <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>
+  <ol><li> <p>Let <var title="">A</var> be an infinite transparent black
+   bitmap on which the source image for which a shadow is being
+   created has been rendered.</p> </li>
 
    <li> <p>Let <var title="">B</var> be an infinite transparent black
    bitmap, with a coordinate space and an origin identical to <var title="">A</var>.</p> </li>
@@ -25765,7 +25766,10 @@
 
   </ol></div>
 
+  <p>If the current composition operation is <code title=gcop-copy><a href=#gcop-copy>copy</a></code>, shadows effectively won't render
+  (since the shape will overwrite the shadow).</p>
 
+
   <h6 id=simple-shapes-(rectangles)><span class=secno>4.8.11.1.7 </span>Simple shapes (rectangles)</h6>
 
   <p>There are three methods that immediately draw rectangles to the
@@ -27197,10 +27201,11 @@
   <p>When a shape or image is painted, user agents must follow these
   steps, in the order given (or act as if they do):</p>
 
-  <ol><li><p>Render the shape or image, creating image <var title="">A</var>, as described in the previous sections. For
-   shapes, the current fill, stroke, and line styles must be honored,
-   and the stroke must itself also be subjected to the current
-   transformation matrix.</li>
+  <ol><li><p>Render the shape or image onto an infinite transparent black
+   bitmap, creating image <var title="">A</var>, as described in the
+   previous sections. For shapes, the current fill, stroke, and line
+   styles must be honored, and the stroke must itself also be
+   subjected to the current transformation matrix.</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,

Modified: index
===================================================================
--- index	2009-10-18 03:17:25 UTC (rev 4157)
+++ index	2009-10-18 05:53:09 UTC (rev 4158)
@@ -111,7 +111,7 @@
 
   <header class=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <hgroup><h1>HTML5</h1>
-    <h2 class="no-num no-toc">Draft Standard — 17 October 2009</h2>
+    <h2 class="no-num no-toc">Draft Standard — 18 October 2009</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -25554,8 +25554,9 @@
 
   <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>
+  <ol><li> <p>Let <var title="">A</var> be an infinite transparent black
+   bitmap on which the source image for which a shadow is being
+   created has been rendered.</p> </li>
 
    <li> <p>Let <var title="">B</var> be an infinite transparent black
    bitmap, with a coordinate space and an origin identical to <var title="">A</var>.</p> </li>
@@ -25594,7 +25595,10 @@
 
   </ol></div>
 
+  <p>If the current composition operation is <code title=gcop-copy><a href=#gcop-copy>copy</a></code>, shadows effectively won't render
+  (since the shape will overwrite the shadow).</p>
 
+
   <h6 id=simple-shapes-(rectangles)><span class=secno>4.8.11.1.7 </span>Simple shapes (rectangles)</h6>
 
   <p>There are three methods that immediately draw rectangles to the
@@ -27026,10 +27030,11 @@
   <p>When a shape or image is painted, user agents must follow these
   steps, in the order given (or act as if they do):</p>
 
-  <ol><li><p>Render the shape or image, creating image <var title="">A</var>, as described in the previous sections. For
-   shapes, the current fill, stroke, and line styles must be honored,
-   and the stroke must itself also be subjected to the current
-   transformation matrix.</li>
+  <ol><li><p>Render the shape or image onto an infinite transparent black
+   bitmap, creating image <var title="">A</var>, as described in the
+   previous sections. For shapes, the current fill, stroke, and line
+   styles must be honored, and the stroke must itself also be
+   subjected to the current transformation matrix.</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,

Modified: source
===================================================================
--- source	2009-10-18 03:17:25 UTC (rev 4157)
+++ source	2009-10-18 05:53:09 UTC (rev 4158)
@@ -27867,8 +27867,9 @@
 
   <ol>
 
-   <li> <p>Let <var title="">A</var> be the source image for which a
-   shadow is being created.</p> </li>
+   <li> <p>Let <var title="">A</var> be an infinite transparent black
+   bitmap on which the source image for which a shadow is being
+   created has been rendered.</p> </li>
 
    <li> <p>Let <var title="">B</var> be an infinite transparent black
    bitmap, with a coordinate space and an origin identical to <var
@@ -27924,7 +27925,11 @@
 
   </div>
 
+  <p>If the current composition operation is <code
+  title="gcop-copy">copy</code>, shadows effectively won't render
+  (since the shape will overwrite the shadow).</p>
 
+
   <h6>Simple shapes (rectangles)</h6>
 
   <p>There are three methods that immediately draw rectangles to the
@@ -29665,11 +29670,11 @@
 
   <ol>
 
-   <li><p>Render the shape or image, creating image <var
-   title="">A</var>, as described in the previous sections. For
-   shapes, the current fill, stroke, and line styles must be honored,
-   and the stroke must itself also be subjected to the current
-   transformation matrix.</p></li>
+   <li><p>Render the shape or image onto an infinite transparent black
+   bitmap, creating image <var title="">A</var>, as described in the
+   previous sections. For shapes, the current fill, stroke, and line
+   styles must be honored, and the stroke must itself also be
+   subjected to the current transformation matrix.</p></li>
 
    <li><p><span>When shadows are drawn</span>, render the shadow from
    image <var title="">A</var>, using the current shadow styles,




More information about the Commit-Watchers mailing list