Clarifications for width/height presentation attributes.
authorErik Dahlstrom <ed@opera.com>
Thu, 17 Apr 2014 11:54:59 +0200
changeset 667 7660e64b1971
parent 666 ee72d89f622d
child 669 98f1838134cd
Clarifications for width/height presentation attributes.
master/styling.html
--- a/master/styling.html	Fri Apr 11 23:58:05 2014 +1000
+++ b/master/styling.html	Thu Apr 17 11:54:59 2014 +0200
@@ -1081,7 +1081,7 @@
     </tr>
     <tr>
       <td>Applies to:</td>
-      <td>all elements but non-replaced inline elements, table rows, and row groups, in SVG: the <a>'foreignObject'</a> element</td>
+      <td>all elements but non-replaced inline elements, table rows, and row groups, in SVG: the <a>'foreignObject'</a> and <a>'svg'</a> elements</td>
     </tr>
     <tr>
       <td>Inherited:</td>
@@ -1128,7 +1128,7 @@
     </tr>
     <tr>
       <td>Applies to:</td>
-      <td>all elements but non-replaced inline elements, table columns, and column groups, in SVG: the <a>'foreignObject'</a> element</td>
+      <td>all elements but non-replaced inline elements, table columns, and column groups, in SVG: the <a>'foreignObject'</a> and <a>'svg'</a> elements</td>
     </tr>
     <tr>
       <td>Inherited:</td>
@@ -1160,6 +1160,10 @@
     ([<a href="refs.html#ref-CSS21">CSS21</a>], section 10.5).
   </p>
 
+  <p>For backwards compatibility, when the <a>'width'</a> or <a>'height'</a> properties are specified as a presentation attributes, only the
+  values that match the <a>&lt;length&gt;</a> production shall be mapped to CSS. Any other value must be treated as <a>invalid</a>.
+  </p>
+
   <p class="issue">Is there a need to define 'auto' in more detail specifically for svg/foreignObject?</p>
 
 <p class="issue">As part of unifying HTML's and SVG's