Skip to content

Commit

Permalink
[giow] (0) Define how an SVG image gets sized in drawImage()
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11488

git-svn-id: http://svn.whatwg.org/webapps@6044 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 29, 2011
1 parent df25aa4 commit 2d64799
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
11 changes: 9 additions & 2 deletions complete.html
Expand Up @@ -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 &mdash; Last Updated 28 April 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>-->
Expand Down Expand Up @@ -36270,7 +36270,14 @@ <h6 id=images><span class=secno>4.8.11.1.11 </span>Images</h6>
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
Expand Down
11 changes: 9 additions & 2 deletions index
Expand Up @@ -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 &mdash; Last Updated 28 April 2011</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>-->
Expand Down Expand Up @@ -36293,7 +36293,14 @@ v5DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
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
Expand Down
11 changes: 10 additions & 1 deletion source
Expand Up @@ -40209,7 +40209,16 @@ v5DVT (also check for '- -' bits in the part above) -->
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
Expand Down

0 comments on commit 2d64799

Please sign in to comment.