[html5] r6044 - [giow] (0) Define how an SVG image gets sized in drawImage() Fixing http://www.w [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Apr 29 12:35:26 PDT 2011


Author: ianh
Date: 2011-04-29 12:35:25 -0700 (Fri, 29 Apr 2011)
New Revision: 6044

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Define how an SVG image gets sized in drawImage()
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11488

Modified: complete.html
===================================================================
--- complete.html	2011-04-28 22:38:43 UTC (rev 6043)
+++ complete.html	2011-04-29 19:35:25 UTC (rev 6044)
@@ -239,7 +239,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 28 April 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 29 April 2011</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>-->
@@ -36270,7 +36270,14 @@
   one CSS pixel in the image is treated as one unit in the canvas
   coordinate space. If the <var title="">sx</var>, <var title="">sy</var>, <var title="">sw</var>, and <var title="">sh</var> arguments are omitted, they must default to 0, 0,
   the image's intrinsic width in image pixels, and the image's
-  intrinsic height in image pixels, respectively.</p>
+  intrinsic height in image pixels, respectively. If the image has no
+  intrinsic dimensions, the <i>concrete object size</i> must be used
+  instead, as determined using the CSS "<a href=http://dev.w3.org/csswg/css3-images/#default-sizing>Concrete
+  Object Size Resolution</a>" algorithm, with the <i>specified
+  size</i> having neither a definite width nor height, nor any
+  additional contraints, the object's intrinsic properties being those
+  of the <var title="">image</var> argument, and the <i>default object
+  size</i> being the size of the <code><a href=#the-canvas-element>canvas</a></code> element. <a href=#refsCSSIMAGES>[CSSIMAGES]</a></p>
 
   <p>The <var title="">image</var> argument is an instance of either
   <code><a href=#htmlimageelement>HTMLImageElement</a></code>, <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code>, or

Modified: index
===================================================================
--- index	2011-04-28 22:38:43 UTC (rev 6043)
+++ index	2011-04-29 19:35:25 UTC (rev 6044)
@@ -243,7 +243,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 28 April 2011</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 29 April 2011</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>-->
@@ -36293,7 +36293,14 @@
   one CSS pixel in the image is treated as one unit in the canvas
   coordinate space. If the <var title="">sx</var>, <var title="">sy</var>, <var title="">sw</var>, and <var title="">sh</var> arguments are omitted, they must default to 0, 0,
   the image's intrinsic width in image pixels, and the image's
-  intrinsic height in image pixels, respectively.</p>
+  intrinsic height in image pixels, respectively. If the image has no
+  intrinsic dimensions, the <i>concrete object size</i> must be used
+  instead, as determined using the CSS "<a href=http://dev.w3.org/csswg/css3-images/#default-sizing>Concrete
+  Object Size Resolution</a>" algorithm, with the <i>specified
+  size</i> having neither a definite width nor height, nor any
+  additional contraints, the object's intrinsic properties being those
+  of the <var title="">image</var> argument, and the <i>default object
+  size</i> being the size of the <code><a href=#the-canvas-element>canvas</a></code> element. <a href=#refsCSSIMAGES>[CSSIMAGES]</a></p>
 
   <p>The <var title="">image</var> argument is an instance of either
   <code><a href=#htmlimageelement>HTMLImageElement</a></code>, <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code>, or

Modified: source
===================================================================
--- source	2011-04-28 22:38:43 UTC (rev 6043)
+++ source	2011-04-29 19:35:25 UTC (rev 6044)
@@ -40209,7 +40209,16 @@
   title="">sy</var>, <var title="">sw</var>, and <var
   title="">sh</var> arguments are omitted, they must default to 0, 0,
   the image's intrinsic width in image pixels, and the image's
-  intrinsic height in image pixels, respectively.</p>
+  intrinsic height in image pixels, respectively. If the image has no
+  intrinsic dimensions, the <i>concrete object size</i> must be used
+  instead, as determined using the CSS "<a
+  href="http://dev.w3.org/csswg/css3-images/#default-sizing">Concrete
+  Object Size Resolution</a>" algorithm, with the <i>specified
+  size</i> having neither a definite width nor height, nor any
+  additional contraints, the object's intrinsic properties being those
+  of the <var title="">image</var> argument, and the <i>default object
+  size</i> being the size of the <code>canvas</code> element. <a
+  href="#refsCSSIMAGES">[CSSIMAGES]</a></p>
 
   <p>The <var title="">image</var> argument is an instance of either
   <code>HTMLImageElement</code>, <code>HTMLCanvasElement</code>, or




More information about the Commit-Watchers mailing list