[html5] r1917 - [] (0) fix the definition of img.width/height for the case where the image isn't [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Jul 23 15:30:37 PDT 2008


Author: ianh
Date: 2008-07-23 15:30:36 -0700 (Wed, 23 Jul 2008)
New Revision: 1917

Modified:
   index
   source
Log:
[] (0) fix the definition of img.width/height for the case where the image isn't being rendered but is available (bug 5856) (credit: avk)

Modified: index
===================================================================
--- index	2008-07-23 22:24:47 UTC (rev 1916)
+++ index	2008-07-23 22:30:36 UTC (rev 1917)
@@ -15738,11 +15738,14 @@
    href="#reflect">reflect</a> the respective content attributes of the same
    name.
 
-  <p>The DOM attributes <dfn id=height
-   title=dom-img-height><code>height</code></dfn> and <dfn id=width
-   title=dom-img-width><code>width</code></dfn> must return the rendered
-   height and width of the image, in CSS pixels, if the image is being
-   rendered, and is being rendered to a visual medium, or 0 otherwise. <a
+  <p>The DOM attributes <dfn id=width
+   title=dom-img-width><code>width</code></dfn> and <dfn id=height
+   title=dom-img-height><code>height</code></dfn> must return the rendered
+   width and height of the image, in CSS pixels, if the image is being
+   rendered, and is being rendered to a visual medium; or else the intrinsic
+   with and height of the image, in CSS pixels, if the image is available but
+   not being rendered to a visual medium; or else 0, if the image is not
+   available or its dimensions are not known. <a
    href="#refsCSS21">[CSS21]</a>
 
   <p>The DOM attribute <dfn id=complete

Modified: source
===================================================================
--- source	2008-07-23 22:24:47 UTC (rev 1916)
+++ source	2008-07-23 22:30:36 UTC (rev 1917)
@@ -13396,11 +13396,14 @@
   name.</p>
 
   <p>The DOM attributes <dfn
-  title="dom-img-height"><code>height</code></dfn> and <dfn
-  title="dom-img-width"><code>width</code></dfn> must return the
-  rendered height and width of the image, in CSS pixels, if the image
-  is being rendered, and is being rendered to a visual medium, or 0
-  otherwise. <a href="#refsCSS21">[CSS21]</a></p>
+  title="dom-img-width"><code>width</code></dfn> and <dfn
+  title="dom-img-height"><code>height</code></dfn> must return the
+  rendered width and height of the image, in CSS pixels, if the image
+  is being rendered, and is being rendered to a visual medium; or else
+  the intrinsic with and height of the image, in CSS pixels, if the
+  image is available but not being rendered to a visual medium; or
+  else 0, if the image is not available or its dimensions are not
+  known. <a href="#refsCSS21">[CSS21]</a></p>
 
   <p>The DOM attribute <dfn
   title="dom-img-complete"><code>complete</code></dfn> must return




More information about the Commit-Watchers mailing list