[html5] r6684 - [giow] (2) <table border=0> shouldn't set a border-style on the table or the cel [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Oct 14 12:06:07 PDT 2011


Author: ianh
Date: 2011-10-14 12:06:06 -0700 (Fri, 14 Oct 2011)
New Revision: 6684

Modified:
   complete.html
   index
   source
Log:
[giow] (2) <table border=0> shouldn't set a border-style on the table or the cells
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13915

Modified: complete.html
===================================================================
--- complete.html	2011-10-14 18:33:39 UTC (rev 6683)
+++ complete.html	2011-10-14 19:06:06 UTC (rev 6684)
@@ -93219,7 +93219,7 @@
   border-style: hidden;
   border-collapse: collapse;
 }
-table[border] { border-style: outset; }
+table[border] { border-style: outset; } /* <a href=#magic-border-selector>only if border is not equivalent to zero</a> */
 table[frame=void i] { border-style: hidden; }
 table[frame=above i] { border-style: outset hidden hidden hidden; }
 table[frame=below i] { border-style: hidden hidden outset hidden; }
@@ -93233,6 +93233,7 @@
 table[border] > thead > tr > td, table[border] > thead > tr > th,
 table[border] > tbody > tr > td, table[border] > tbody > tr > th,
 table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
+  /* <a href=#magic-border-selector>only if border is not equivalent to zero</a> */
   border-width: 1px;
   border-style: inset;
 }
@@ -93290,7 +93291,7 @@
 }</pre>
 
 <!--
- Demos that the above must explain:
+ Demos that the above (and prose below) must explain:
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1191
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1194
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1195
@@ -93299,6 +93300,7 @@
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1199
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1200
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1201
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1209
 -->
 
 
@@ -93466,19 +93468,15 @@
   error, a default value of 1px is expected to be used for that
   property instead.</p>
 
-  <p>When a <code><a href=#the-table-element>table</a></code> element's <code title=attr-table-border><a href=#attr-table-border>border</a></code> attribute is present and,
-  when parsed using the <a href=#rules-for-parsing-non-negative-integers>rules for parsing non-negative
-  integers</a>, is found to have the value zero, the user agent is
-  expected to use the attribute as a <a href=#presentational-hints title="presentational
-  hints">presentational hint</a> setting the 'border-top-width',
-  'border-right-width', 'border-bottom-width', and 'border-left-width'
-  properties of any <code><a href=#the-td-element>td</a></code> and <code><a href=#the-th-element>th</a></code> elements that
-  are are <a href=#concept-cell title=concept-cell>cells</a> in the same
-  <a href=#table-model>table model</a> as the <code><a href=#the-table-element>table</a></code> element to
-  zero.</p>
+  <p>Rules marked "<dfn id=magic-border-selector>only if border is
+  not equivalent to zero</dfn>" in the CSS block above is expected to
+  only be applied if the <code title=attr-table-border><a href=#attr-table-border>border</a></code>
+  attribute mentioned in the selectors for the rule is not only
+  present but, when parsed using the <a href=#rules-for-parsing-non-negative-integers>rules for parsing
+  non-negative integers</a>, is also found to have a value other
+  than zero or to generate an error.</p>
 
 
-
   <h4 id=form-controls><span class=secno>15.3.9 </span>Form controls</h4>
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

Modified: index
===================================================================
--- index	2011-10-14 18:33:39 UTC (rev 6683)
+++ index	2011-10-14 19:06:06 UTC (rev 6684)
@@ -93219,7 +93219,7 @@
   border-style: hidden;
   border-collapse: collapse;
 }
-table[border] { border-style: outset; }
+table[border] { border-style: outset; } /* <a href=#magic-border-selector>only if border is not equivalent to zero</a> */
 table[frame=void i] { border-style: hidden; }
 table[frame=above i] { border-style: outset hidden hidden hidden; }
 table[frame=below i] { border-style: hidden hidden outset hidden; }
@@ -93233,6 +93233,7 @@
 table[border] > thead > tr > td, table[border] > thead > tr > th,
 table[border] > tbody > tr > td, table[border] > tbody > tr > th,
 table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
+  /* <a href=#magic-border-selector>only if border is not equivalent to zero</a> */
   border-width: 1px;
   border-style: inset;
 }
@@ -93290,7 +93291,7 @@
 }</pre>
 
 <!--
- Demos that the above must explain:
+ Demos that the above (and prose below) must explain:
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1191
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1194
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1195
@@ -93299,6 +93300,7 @@
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1199
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1200
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1201
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1209
 -->
 
 
@@ -93466,19 +93468,15 @@
   error, a default value of 1px is expected to be used for that
   property instead.</p>
 
-  <p>When a <code><a href=#the-table-element>table</a></code> element's <code title=attr-table-border><a href=#attr-table-border>border</a></code> attribute is present and,
-  when parsed using the <a href=#rules-for-parsing-non-negative-integers>rules for parsing non-negative
-  integers</a>, is found to have the value zero, the user agent is
-  expected to use the attribute as a <a href=#presentational-hints title="presentational
-  hints">presentational hint</a> setting the 'border-top-width',
-  'border-right-width', 'border-bottom-width', and 'border-left-width'
-  properties of any <code><a href=#the-td-element>td</a></code> and <code><a href=#the-th-element>th</a></code> elements that
-  are are <a href=#concept-cell title=concept-cell>cells</a> in the same
-  <a href=#table-model>table model</a> as the <code><a href=#the-table-element>table</a></code> element to
-  zero.</p>
+  <p>Rules marked "<dfn id=magic-border-selector>only if border is
+  not equivalent to zero</dfn>" in the CSS block above is expected to
+  only be applied if the <code title=attr-table-border><a href=#attr-table-border>border</a></code>
+  attribute mentioned in the selectors for the rule is not only
+  present but, when parsed using the <a href=#rules-for-parsing-non-negative-integers>rules for parsing
+  non-negative integers</a>, is also found to have a value other
+  than zero or to generate an error.</p>
 
 
-
   <h4 id=form-controls><span class=secno>15.3.9 </span>Form controls</h4>
 
   <pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

Modified: source
===================================================================
--- source	2011-10-14 18:33:39 UTC (rev 6683)
+++ source	2011-10-14 19:06:06 UTC (rev 6684)
@@ -105646,7 +105646,7 @@
   border-style: hidden;
   border-collapse: collapse;
 }
-table[border] { border-style: outset; }
+table[border] { border-style: outset; } /* <a href="#magic-border-selector">only if border is not equivalent to zero</a> */
 table[frame=void i] { border-style: hidden; }
 table[frame=above i] { border-style: outset hidden hidden hidden; }
 table[frame=below i] { border-style: hidden hidden outset hidden; }
@@ -105660,6 +105660,7 @@
 table[border] > thead > tr > td, table[border] > thead > tr > th,
 table[border] > tbody > tr > td, table[border] > tbody > tr > th,
 table[border] > tfoot > tr > td, table[border] > tfoot > tr > th {
+  /* <a href="#magic-border-selector">only if border is not equivalent to zero</a> */
   border-width: 1px;
   border-style: inset;
 }
@@ -105717,7 +105718,7 @@
 }</pre>
 
 <!--
- Demos that the above must explain:
+ Demos that the above (and prose below) must explain:
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1191
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1194
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1195
@@ -105726,6 +105727,7 @@
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1199
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1200
    http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1201
+   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1209
 -->
 
 
@@ -105934,20 +105936,15 @@
   error, a default value of 1px is expected to be used for that
   property instead.</p>
 
-  <p>When a <code>table</code> element's <code
-  title="attr-table-border">border</code> attribute is present and,
-  when parsed using the <span>rules for parsing non-negative
-  integers</span>, is found to have the value zero, the user agent is
-  expected to use the attribute as a <span title="presentational
-  hints">presentational hint</span> setting the 'border-top-width',
-  'border-right-width', 'border-bottom-width', and 'border-left-width'
-  properties of any <code>td</code> and <code>th</code> elements that
-  are are <span title="concept-cell">cells</span> in the same
-  <span>table model</span> as the <code>table</code> element to
-  zero.</p>
+  <p>Rules marked "<dfn id="magic-border-selector">only if border is
+  not equivalent to zero</dfn>" in the CSS block above is expected to
+  only be applied if the <code title="attr-table-border">border</code>
+  attribute mentioned in the selectors for the rule is not only
+  present but, when parsed using the <span>rules for parsing
+  non-negative integers</span>, is also found to have a value other
+  than zero or to generate an error.</p>
 
 
-
   <h4>Form controls</h4>
 
   <pre class="css">@namespace url(http://www.w3.org/1999/xhtml);




More information about the Commit-Watchers mailing list