- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 07 Jan 2012 00:14:07 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv30769
Modified Files:
Overview.html
Log Message:
Define what should happen with canvas.toBlob() for zero-sized canvases. (whatwg r6880)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5479
retrieving revision 1.5480
diff -u -d -r1.5479 -r1.5480
--- Overview.html 6 Jan 2012 20:46:35 -0000 1.5479
+++ Overview.html 7 Jan 2012 00:14:02 -0000 1.5480
@@ -320,7 +320,7 @@
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
- <h2 class="no-num no-toc" id="editor-s-draft-6-january-2012">Editor's Draft 6 January 2012</h2>
+ <h2 class="no-num no-toc" id="editor-s-draft-7-january-2012">Editor's Draft 7 January 2012</h2>
<dl><dt>Latest Published Version:</dt>
<dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
<dt>Latest Editor's Draft:</dt>
@@ -467,7 +467,7 @@
Group</a> is the W3C working group responsible for this
specification's progress along the W3C Recommendation
track.
- This specification is the 6 January 2012 Editor's Draft.
+ This specification is the 7 January 2012 Editor's Draft.
</p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -29200,8 +29200,16 @@
<li><p>Let <var title="">arguments</var> be the second and
subsequent arguments to the method, if any.</li>
- <li><p>Let <var title="">file</var> be <a href="#a-serialization-of-the-image-as-a-file">a serialization of the
- image as a file</a>, using <var title="">arguments</var>.</li>
+ <li>
+
+ <p>If the canvas has no pixels (i.e. either its horizontal
+ dimension or its vertical dimension is zero) then let <var title="">result</var> be null.</p>
+
+ <p>Otherwise, let <var title="">result</var> be a
+ <code><a href="#blob">Blob</a></code> object representing <a href="#a-serialization-of-the-image-as-a-file">a serialization of the
+ image as a file</a>, using <var title="">arguments</var>.</p>
+
+ </li>
<li><p>Return, but continue running these steps
asynchronously.</li>
@@ -29210,10 +29218,9 @@
steps.</li>
<li><p><a href="#queue-a-task">Queue a task</a> to invoke the
- <code>FileCallback</code> <var title="">callback</var> with a
- <code><a href="#blob">Blob</a></code> object representing <var title="">file</var> as
- its argument. The <a href="#task-source">task source</a> for this task is the
- <dfn id="canvas-blob-serialization-task-source">canvas blob serialization task source</dfn>. <a href="#refsFILESYSTEMAPI">[FILESYSTEMAPI]</a> <a href="#refsFILEAPI">[FILEAPI]</a> </li>
+ <code>FileCallback</code> <var title="">callback</var> with <var title="">result</var> as its argument. The <a href="#task-source">task source</a>
+ for this task is the <dfn id="canvas-blob-serialization-task-source">canvas blob serialization task
+ source</dfn>. <a href="#refsFILESYSTEMAPI">[FILESYSTEMAPI]</a> <a href="#refsFILEAPI">[FILEAPI]</a> </li>
</ol><p>When a user agent is to create <dfn id="a-serialization-of-the-image-as-a-file">a serialization of the image
as a file</dfn>, optionally with some given <var title="">arguments</var>, it must create an image file in the format
Received on Saturday, 7 January 2012 00:14:09 UTC