spec/Overview.html 1.1645 2474 Change the rules for the handling of dim

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)

4.8.17 Dimension attributes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1645.html#dimension-attributes

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1644&r2=1.1645&f=h
http://html5.org/tools/web-apps-tracker?from=2473&to=2474

===================================================================
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:53:19 UTC