html5/spec Overview.html,1.1644,1.1645

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv19492

Modified Files:
	Overview.html 
Log Message:
Change the rules for the handling of dimension attributes so that the requirement that they keep their ratio takes into account the integer nature of the attributes. (whatwg r2474)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1644
retrieving revision 1.1645
diff -u -d -r1.1644 -r1.1645
--- Overview.html	29 Nov 2008 21:32:08 -0000	1.1644
+++ Overview.html	29 Nov 2008 21:48:30 -0000	1.1645
@@ -17219,12 +17219,21 @@
   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.) 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 intrinsic width to the
-  intrinsic height in the resource, or alternatively, in the case of
-  the <code><a href=#video>video</a></code> element, the same as the <a href=#concept-video-adjusted-ratio title=concept-video-adjusted-ratio>adjusted ratio</a>. The two
-  attributes must be omitted if the resource in question does not have
-  both an intrinsic width and an intrinsic height.<p>To parse the attributes, user agents must use the <a href=#rules-for-parsing-dimension-values>rules for
+  specified, then one of the following statements must be true:<ul><li><span><var title="">specified width</var> - 0.5 &le;
+             <var title="">specified height</var> * <var title="">target ratio</var> &le;
+             <var title="">specified width</var> + 0.5</span></li>
+
+   <li><span><var title="">specified height</var> - 0.5 &le;
+             <var title="">specified width</var> / <var title="">target ratio</var> &le;
+             <var title="">specified height</var> + 0.5</span></li>
+
+  </ul><p>The <var title="">target ratio</var> is, in the
+  <code><a href=#video>video</a></code> element, the same as the <a href=#concept-video-adjusted-ratio title=concept-video-adjusted-ratio>adjusted ratio</a>, and in
+  the other cases, the ratio of the intrinsic width to the intrinsic
+  height in the resource. The <var title="">specified width</var> and
+  <var title="">specified height</var> are the values of the <code title=attr-dim-width><a href=#attr-dim-width>width</a></code> and <code title=attr-dim-height><a href=#attr-dim-height>height</a></code> attributes respectively.<p>The two attributes must be omitted if the resource in question
+  does not have both an intrinsic width and an intrinsic height.<p class=note>Basically, the dimension attributes can't be used to
+  stretch the image.<p>To parse the attributes, user agents must use the <a href=#rules-for-parsing-dimension-values>rules for
   parsing dimension values</a>. This will return either an integer
   length, a percentage value, or nothing. The user agent requirements
   for processing the values obtained from parsing these attributes are

Received on Saturday, 29 November 2008 21:48:42 UTC