[html5] r8071 - [e] (0) <canvas> itself doesn't have a coordinate space; fix this text to refere [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jul 18 10:13:40 PDT 2013
Author: ianh
Date: 2013-07-18 10:13:37 -0700 (Thu, 18 Jul 2013)
New Revision: 8071
Modified:
complete.html
index
source
Log:
[e] (0) <canvas> itself doesn't have a coordinate space; fix this text to reference things that exist.
Affected topics: Canvas
Modified: complete.html
===================================================================
--- complete.html 2013-07-18 16:45:07 UTC (rev 8070)
+++ complete.html 2013-07-18 17:13:37 UTC (rev 8071)
@@ -33050,7 +33050,7 @@
elements in the <a href=#fallback-content>fallback content</a>. (Focus has no effect on mouse interaction events.)
<a href=#refsDOMEVENTS>[DOMEVENTS]</a></p> <!-- user interaction spec integration point -->
- <hr><p>The <code><a href=#the-canvas-element>canvas</a></code> element has two attributes to control the size of the coordinate space:
+ <hr><p>The <code><a href=#the-canvas-element>canvas</a></code> element has two attributes to control the size of the element's bitmap:
<dfn id=attr-canvas-width title=attr-canvas-width><code>width</code></dfn> and <dfn id=attr-canvas-height title=attr-canvas-height><code>height</code></dfn>. These attributes, when specified, must have
values that are <a href=#valid-non-negative-integer title="valid non-negative integer">valid non-negative integers</a>. <span class=impl>The <a href=#rules-for-parsing-non-negative-integers>rules for parsing non-negative integers</a> must be used to obtain their
numeric values. If an attribute is missing, or if parsing its value returns an error, then the
@@ -33812,6 +33812,21 @@
attention to a location on the bitmap, and instructions to scroll to a location on the bitmap.
Initially, this list is also empty.</p>
+ <p>The <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> 2D rendering context represents a flat linear
+ Cartesian surface whose origin (0,0) is at the top left corner, with the coordinate space having
+ <var title="">x</var> values increasing when going right, and <var title="">y</var> values
+ increasing when going down. The <var title="">x</var>-coordinate of the right-most edge is equal to
+ the width of the rendering context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels; similarly, the
+ <var title="">y</var>-coordinate of the bottom-most edge is equal to the height of the rendering
+ context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels.</p>
+
+ <p>The size of the coordinate space does not necessarily represent the size of the actual bitmaps
+ that the user agent will use internally or during rendering. On high-definition displays, for
+ instance, the user agent may internally use bitmaps with two device pixels per unit in the
+ coordinate space, so that the rendering remains at high quality throughout. Anti-aliasing can
+ similarly be implemented using over-sampling with bitmaps of a higher resolution than the final
+ image on the display.</p>
+
<hr><p>The <dfn id=2d-context-creation-algorithm>2D context creation algorithm</dfn>, which is passed a <var title="">target</var> (a
<code><a href=#the-canvas-element>canvas</a></code> element), consists of running the following steps:</p>
@@ -34030,22 +34045,7 @@
<li><p>Let the <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object's <a href=#output-bitmap>output bitmap</a> be <var title="">target</var>'s bitmap.</li>
- </ol><hr><p>The <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> 2D rendering context represents a flat linear
- Cartesian surface whose origin (0,0) is at the top left corner, with the coordinate space having
- <var title="">x</var> values increasing when going right, and <var title="">y</var> values
- increasing when going down. The <var title="">x</var>-coordinate of the right-most edge is equal to
- the width of the rendering context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels; similarly, the
- <var title="">y</var>-coordinate of the bottom-most edge is equal to the height of the rendering
- context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels.</p>
-
- <p>The size of the coordinate space does not necessarily represent the size of the actual bitmaps
- that the user agent will use internally or during rendering. On high-definition displays, for
- instance, the user agent may internally use bitmaps with two device pixels per unit in the
- coordinate space, so that the rendering remains at high quality throughout. Anti-aliasing can
- similarly be implemented using over-sampling with bitmaps of a higher resolution than the final
- image on the display.</p>
-
- <hr><p>The <dfn id=dom-context-2d-canvas title=dom-context-2d-canvas><code>canvas</code></dfn> attribute must return the
+ </ol><hr><p>The <dfn id=dom-context-2d-canvas title=dom-context-2d-canvas><code>canvas</code></dfn> attribute must return the
value it was initialized to when the object was created.</p>
<p>The <dfn id=dom-context-2d-width title=dom-context-2d-width><code>width</code></dfn> attribute, on getting, must
Modified: index
===================================================================
--- index 2013-07-18 16:45:07 UTC (rev 8070)
+++ index 2013-07-18 17:13:37 UTC (rev 8071)
@@ -33050,7 +33050,7 @@
elements in the <a href=#fallback-content>fallback content</a>. (Focus has no effect on mouse interaction events.)
<a href=#refsDOMEVENTS>[DOMEVENTS]</a></p> <!-- user interaction spec integration point -->
- <hr><p>The <code><a href=#the-canvas-element>canvas</a></code> element has two attributes to control the size of the coordinate space:
+ <hr><p>The <code><a href=#the-canvas-element>canvas</a></code> element has two attributes to control the size of the element's bitmap:
<dfn id=attr-canvas-width title=attr-canvas-width><code>width</code></dfn> and <dfn id=attr-canvas-height title=attr-canvas-height><code>height</code></dfn>. These attributes, when specified, must have
values that are <a href=#valid-non-negative-integer title="valid non-negative integer">valid non-negative integers</a>. <span class=impl>The <a href=#rules-for-parsing-non-negative-integers>rules for parsing non-negative integers</a> must be used to obtain their
numeric values. If an attribute is missing, or if parsing its value returns an error, then the
@@ -33812,6 +33812,21 @@
attention to a location on the bitmap, and instructions to scroll to a location on the bitmap.
Initially, this list is also empty.</p>
+ <p>The <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> 2D rendering context represents a flat linear
+ Cartesian surface whose origin (0,0) is at the top left corner, with the coordinate space having
+ <var title="">x</var> values increasing when going right, and <var title="">y</var> values
+ increasing when going down. The <var title="">x</var>-coordinate of the right-most edge is equal to
+ the width of the rendering context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels; similarly, the
+ <var title="">y</var>-coordinate of the bottom-most edge is equal to the height of the rendering
+ context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels.</p>
+
+ <p>The size of the coordinate space does not necessarily represent the size of the actual bitmaps
+ that the user agent will use internally or during rendering. On high-definition displays, for
+ instance, the user agent may internally use bitmaps with two device pixels per unit in the
+ coordinate space, so that the rendering remains at high quality throughout. Anti-aliasing can
+ similarly be implemented using over-sampling with bitmaps of a higher resolution than the final
+ image on the display.</p>
+
<hr><p>The <dfn id=2d-context-creation-algorithm>2D context creation algorithm</dfn>, which is passed a <var title="">target</var> (a
<code><a href=#the-canvas-element>canvas</a></code> element), consists of running the following steps:</p>
@@ -34030,22 +34045,7 @@
<li><p>Let the <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object's <a href=#output-bitmap>output bitmap</a> be <var title="">target</var>'s bitmap.</li>
- </ol><hr><p>The <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> 2D rendering context represents a flat linear
- Cartesian surface whose origin (0,0) is at the top left corner, with the coordinate space having
- <var title="">x</var> values increasing when going right, and <var title="">y</var> values
- increasing when going down. The <var title="">x</var>-coordinate of the right-most edge is equal to
- the width of the rendering context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels; similarly, the
- <var title="">y</var>-coordinate of the bottom-most edge is equal to the height of the rendering
- context's <a href=#scratch-bitmap>scratch bitmap</a> in CSS pixels.</p>
-
- <p>The size of the coordinate space does not necessarily represent the size of the actual bitmaps
- that the user agent will use internally or during rendering. On high-definition displays, for
- instance, the user agent may internally use bitmaps with two device pixels per unit in the
- coordinate space, so that the rendering remains at high quality throughout. Anti-aliasing can
- similarly be implemented using over-sampling with bitmaps of a higher resolution than the final
- image on the display.</p>
-
- <hr><p>The <dfn id=dom-context-2d-canvas title=dom-context-2d-canvas><code>canvas</code></dfn> attribute must return the
+ </ol><hr><p>The <dfn id=dom-context-2d-canvas title=dom-context-2d-canvas><code>canvas</code></dfn> attribute must return the
value it was initialized to when the object was created.</p>
<p>The <dfn id=dom-context-2d-width title=dom-context-2d-width><code>width</code></dfn> attribute, on getting, must
Modified: source
===================================================================
--- source 2013-07-18 16:45:07 UTC (rev 8070)
+++ source 2013-07-18 17:13:37 UTC (rev 8071)
@@ -35631,7 +35631,7 @@
<hr>
- <p>The <code>canvas</code> element has two attributes to control the size of the coordinate space:
+ <p>The <code>canvas</code> element has two attributes to control the size of the element's bitmap:
<dfn title="attr-canvas-width"><code>width</code></dfn> and <dfn
title="attr-canvas-height"><code>height</code></dfn>. These attributes, when specified, must have
values that are <span title="valid non-negative integer">valid non-negative integers</span>. <span
@@ -36525,6 +36525,21 @@
attention to a location on the bitmap, and instructions to scroll to a location on the bitmap.
Initially, this list is also empty.</p>
+ <p>The <code>CanvasRenderingContext2D</code> 2D rendering context represents a flat linear
+ Cartesian surface whose origin (0,0) is at the top left corner, with the coordinate space having
+ <var title="">x</var> values increasing when going right, and <var title="">y</var> values
+ increasing when going down. The <var title="">x</var>-coordinate of the right-most edge is equal to
+ the width of the rendering context's <span>scratch bitmap</span> in CSS pixels; similarly, the
+ <var title="">y</var>-coordinate of the bottom-most edge is equal to the height of the rendering
+ context's <span>scratch bitmap</span> in CSS pixels.</p>
+
+ <p>The size of the coordinate space does not necessarily represent the size of the actual bitmaps
+ that the user agent will use internally or during rendering. On high-definition displays, for
+ instance, the user agent may internally use bitmaps with two device pixels per unit in the
+ coordinate space, so that the rendering remains at high quality throughout. Anti-aliasing can
+ similarly be implemented using over-sampling with bitmaps of a higher resolution than the final
+ image on the display.</p>
+
<hr>
<p>The <dfn>2D context creation algorithm</dfn>, which is passed a <var title="">target</var> (a
@@ -36803,23 +36818,6 @@
<hr>
- <p>The <code>CanvasRenderingContext2D</code> 2D rendering context represents a flat linear
- Cartesian surface whose origin (0,0) is at the top left corner, with the coordinate space having
- <var title="">x</var> values increasing when going right, and <var title="">y</var> values
- increasing when going down. The <var title="">x</var>-coordinate of the right-most edge is equal to
- the width of the rendering context's <span>scratch bitmap</span> in CSS pixels; similarly, the
- <var title="">y</var>-coordinate of the bottom-most edge is equal to the height of the rendering
- context's <span>scratch bitmap</span> in CSS pixels.</p>
-
- <p>The size of the coordinate space does not necessarily represent the size of the actual bitmaps
- that the user agent will use internally or during rendering. On high-definition displays, for
- instance, the user agent may internally use bitmaps with two device pixels per unit in the
- coordinate space, so that the rendering remains at high quality throughout. Anti-aliasing can
- similarly be implemented using over-sampling with bitmaps of a higher resolution than the final
- image on the display.</p>
-
- <hr>
-
<p>The <dfn title="dom-context-2d-canvas"><code>canvas</code></dfn> attribute must return the
value it was initialized to when the object was created.</p>
More information about the Commit-Watchers
mailing list