[html5] r1009 - /

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 15 03:26:40 PDT 2007


Author: ianh
Date: 2007-08-15 03:26:39 -0700 (Wed, 15 Aug 2007)
New Revision: 1009

Modified:
   index
   source
Log:
[] (1) Allow a lone height or width attribute, since that could be used to size high res images of unknown specific dimensions.

Modified: index
===================================================================
--- index	2007-08-15 10:16:08 UTC (rev 1008)
+++ index	2007-08-15 10:26:39 UTC (rev 1009)
@@ -12428,13 +12428,10 @@
    in the image file itself, since the image file may have a resolution that
    differs from the CSS pixel resolution. (On screens, CSS pixels have a
    resolution of 96ppi, but in general the CSS pixel resolution depends on
-   the reading distance.) The ratio of the specified width to the specified
-   height must be the same as the ratio of the logical width to the logical
-   height in the image file.
+   the reading distance.) If both attributes are specified, then the ratio of
+   the specified width to the specified height must be the same as the ratio
+   of the logical width to the logical height in the image file.
 
-  <p>If either attribute is specified, the other must be as well (a lone
-   width or height is not conforming).
-
   <p>To parse the attributes, user agents must use the <a
    href="#rules2">rules for parsing dimension values</a>. This will return
    either an integer length, a percentage value, or nothing. The user agent

Modified: source
===================================================================
--- source	2007-08-15 10:16:08 UTC (rev 1008)
+++ source	2007-08-15 10:26:39 UTC (rev 1009)
@@ -10456,13 +10456,11 @@
   specified in the image file itself, since the image file may have a
   resolution that differs from the CSS pixel resolution. (On screens,
   CSS pixels have a resolution of 96ppi, but in general the CSS pixel
-  resolution depends on the reading distance.) The ratio of the
-  specified width to the specified height must be the same as the
-  ratio of the logical width to the logical height in the image file.</p>
+  resolution depends on the reading distance.) If both attributes are
+  specified, then the ratio of the specified width to the specified
+  height must be the same as the ratio of the logical width to the
+  logical height in the image file.</p>
 
-  <p>If either attribute is specified, the other must be as well (a
-  lone width or height is not conforming).</p>
-
   <p>To parse the attributes, user agents must use the <span>rules for
   parsing dimension values</span>. This will return either an integer
   length, a percentage value, or nothing. The user agent requirements




More information about the Commit-Watchers mailing list