[html5] r2943 - [ac] (0) Allow the dimension attributes to be set to zero. (credit: sp) (bug 6544)

whatwg at whatwg.org whatwg at whatwg.org
Tue Mar 31 17:12:27 PDT 2009


Author: ianh
Date: 2009-03-31 17:12:26 -0700 (Tue, 31 Mar 2009)
New Revision: 2943

Modified:
   index
   source
Log:
[ac] (0) Allow the dimension attributes to be set to zero. (credit: sp) (bug 6544)

Modified: index
===================================================================
--- index	2009-03-31 23:59:35 UTC (rev 2942)
+++ index	2009-04-01 00:12:26 UTC (rev 2943)
@@ -39,7 +39,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 31 March 2009</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 1 April 2009</h2>
    <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>
    <dl><dt>Multiple-page version:</dt>
@@ -17739,8 +17739,12 @@
   views, then the <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute must
   be the empty string.</p>
 
+  <p>In such cases, 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 should both
+  be set to zero.</p>
 
 
+
   <h6 id=an-image-in-an-e-mail-or-document-intended-for-a-specific-person-who-is-known-to-be-able-to-view-images><span class=secno>4.8.2.1.11 </span>An image in an e-mail or document intended for a specific person who is known to be able to view images</h6>
 
   <p>When an image is included in a communication (such as an HTML
@@ -25214,7 +25218,7 @@
   respectively, relative to the nominal direction of the output
   medium), in CSS pixels. The attributes, if specified, must have
   values that are <a href=#valid-non-negative-integer title="valid non-negative integer">valid
-  non-negative integers</a> greater than zero.</p>
+  non-negative integers</a>.</p>
 
   <p>The specified dimensions given may differ from the dimensions
   specified in the resource itself, since the resource may have a
@@ -25231,6 +25235,8 @@
              <var title="">specified width</var> / <var title="">target ratio</var> ≤
              <var title="">specified height</var> + 0.5</span></li>
 
+   <li><span title=""><var title="">specified height</var> = <var title="">specified width</var> = 0</span></li>
+
   </ul><p>The <var title="">target ratio</var> is 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>
@@ -25238,9 +25244,13 @@
   <p>The two attributes must be omitted if the resource in question
   does not have both an intrinsic width and an intrinsic height.</p>
 
-  <p class=note>Basically, the dimension attributes can't be used to
-  stretch the image.</p>
+  <p>If the two attributes are both zero, it indicates that the
+  element is not intended for the user (e.g. it might be a part of a
+  service to count page views).</p>
 
+  <p class=note>The dimension attributes are not intended to be used
+  to stretch the image.</p>
+
   <div class=impl>
 
   <p><strong>User agent requirements:</strong> User agents are

Modified: source
===================================================================
--- source	2009-03-31 23:59:35 UTC (rev 2942)
+++ source	2009-04-01 00:12:26 UTC (rev 2943)
@@ -19028,8 +19028,12 @@
   views, then the <code title="attr-img-alt">alt</code> attribute must
   be the empty string.</p>
 
+  <p>In such cases, the <code title="attr-dim-width">width</code> and
+  <code title="attr-dim-height">height</code> attributes should both
+  be set to zero.</p>
 
 
+
   <h6>An image in an e-mail or document intended for a specific person who is known to be able to view images</h6>
 
   <p>When an image is included in a communication (such as an HTML
@@ -27876,7 +27880,7 @@
   respectively, relative to the nominal direction of the output
   medium), in CSS pixels. The attributes, if specified, must have
   values that are <span title="valid non-negative integer">valid
-  non-negative integers</span> greater than zero.</p>
+  non-negative integers</span>.</p>
 
   <p>The specified dimensions given may differ from the dimensions
   specified in the resource itself, since the resource may have a
@@ -27895,6 +27899,8 @@
              <var title="">specified width</var> / <var title="">target ratio</var> ≤
              <var title="">specified height</var> + 0.5</span></li>
 
+   <li><span title=""><var title="">specified height</var> = <var title="">specified width</var> = 0</span></li>
+
   </ul>
 
   <p>The <var title="">target ratio</var> is the ratio of the
@@ -27907,9 +27913,13 @@
   <p>The two attributes must be omitted if the resource in question
   does not have both an intrinsic width and an intrinsic height.</p>
 
-  <p class="note">Basically, the dimension attributes can't be used to
-  stretch the image.</p>
+  <p>If the two attributes are both zero, it indicates that the
+  element is not intended for the user (e.g. it might be a part of a
+  service to count page views).</p>
 
+  <p class="note">The dimension attributes are not intended to be used
+  to stretch the image.</p>
+
   <div class="impl">
 
   <p><strong>User agent requirements:</strong> User agents are




More information about the Commit-Watchers mailing list