W3C home > Mailing lists > Public > public-html-diffs@w3.org > October 2011

hixie: Try to improve compat for legacy <table border='' rules='' and frames=''> attributes. (whatwg r6681)

From: poot <cvsmail@w3.org>
Date: Thu, 13 Oct 2011 20:39:12 -0400
To: public-html-diffs@w3.org
Message-Id: <E1REVnr-000334-Tw@jay.w3.org>
hixie: Try to improve compat for legacy <table border='' rules='' and
frames=''> attributes. (whatwg r6681)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5357&r2=1.5358&f=h
http://html5.org/tools/web-apps-tracker?from=6680&to=6681

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5357
retrieving revision 1.5358
diff -u -d -r1.5357 -r1.5358
--- Overview.html	13 Oct 2011 00:41:33 -0000	1.5357
+++ Overview.html	14 Oct 2011 00:38:53 -0000	1.5358
@@ -320,7 +320,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-13-october-2011">Editor's Draft 13 October 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-14-october-2011">Editor's Draft 14 October 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -466,7 +466,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 13 October 2011 Editor's Draft.
+  This specification is the 14 October 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -64898,12 +64898,9 @@
 table {
   border-spacing: 2px;
   border-collapse: separate;
-  border-style: outset;
-  border-width: 0;
   text-indent: initial;
 }
-
-td, th { padding: 1px; border-style: inset; }
+td, th { padding: 1px; }
 th { font-weight: bold; }
 
 thead, tbody, tfoot, table &gt; tr { vertical-align: middle; }
@@ -64993,20 +64990,26 @@
 
 table[rules=none i], table[rules=groups i], table[rules=rows i],
 table[rules=cols i], table[rules=all i] {
-  border-style: none;
+  border-style: hidden;
   border-collapse: collapse;
 }
+table[border] { border-style: outset; }
+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; }
+table[frame=hsides i] { border-style: outset hidden outset hidden; }
+table[frame=lhs i] { border-style: hidden hidden hidden outset; }
+table[frame=rhs i] { border-style: hidden outset hidden hidden; }
+table[frame=vsides i] { border-style: hidden outset; }
+table[frame=box i], table[frame=border i] { border-style: outset; }
 
-table[frame=void i] { border-style: hidden hidden hidden hidden; }
-table[frame=above i] { border-style: solid hidden hidden hidden; }
-table[frame=below i] { border-style: hidden hidden solid hidden; }
-table[frame=hsides i] { border-style: solid hidden solid hidden; }
-table[frame=lhs i] { border-style: hidden hidden hidden solid; }
-table[frame=rhs i] { border-style: hidden solid hidden hidden; }
-table[frame=vsides i] { border-style: hidden solid hidden solid; }
-table[frame=box i],
-table[frame=border i] { border-style: solid solid solid solid; }
-
+table[border] &gt; tr &gt; td, table[border] &gt; tr &gt; th,
+table[border] &gt; thead &gt; tr &gt; td, table[border] &gt; thead &gt; tr &gt; th,
+table[border] &gt; tbody &gt; tr &gt; td, table[border] &gt; tbody &gt; tr &gt; th,
+table[border] &gt; tfoot &gt; tr &gt; td, table[border] &gt; tfoot &gt; tr &gt; th {
+  border-width: 1px;
+  border-style: inset;
+}
 table[rules=none i] &gt; tr &gt; td, table[rules=none i] &gt; tr &gt; th,
 table[rules=none i] &gt; thead &gt; tr &gt; td, table[rules=none i] &gt; thead &gt; tr &gt; th,
 table[rules=none i] &gt; tbody &gt; tr &gt; td, table[rules=none i] &gt; tbody &gt; tr &gt; th,
@@ -65019,40 +65022,49 @@
 table[rules=rows i] &gt; thead &gt; tr &gt; td, table[rules=rows i] &gt; thead &gt; tr &gt; th,
 table[rules=rows i] &gt; tbody &gt; tr &gt; td, table[rules=rows i] &gt; tbody &gt; tr &gt; th,
 table[rules=rows i] &gt; tfoot &gt; tr &gt; td, table[rules=rows i] &gt; tfoot &gt; tr &gt; th {
+  border-width: 1px;
   border-style: none;
 }
-
-table[rules=groups i] &gt; colgroup, table[rules=groups i] &gt; thead,
-table[rules=groups i] &gt; tbody, table[rules=groups i] &gt; tfoot {
-  border-style: solid;
-}
-
-table[rules=rows i] &gt; tr, table[rules=rows i] &gt; thead &gt; tr,
-table[rules=rows i] &gt; tbody &gt; tr, table[rules=rows i] &gt; tfoot &gt; tr {
-  border-style: solid;
-}
-
 table[rules=cols i] &gt; tr &gt; td, table[rules=cols i] &gt; tr &gt; th,
 table[rules=cols i] &gt; thead &gt; tr &gt; td, table[rules=cols i] &gt; thead &gt; tr &gt; th,
 table[rules=cols i] &gt; tbody &gt; tr &gt; td, table[rules=cols i] &gt; tbody &gt; tr &gt; th,
 table[rules=cols i] &gt; tfoot &gt; tr &gt; td, table[rules=cols i] &gt; tfoot &gt; tr &gt; th {
-  border-style: none solid none solid;
+  border-width: 1px;
+  border-style: none solid;
 }
-
 table[rules=all i] &gt; tr &gt; td, table[rules=all i] &gt; tr &gt; th,
 table[rules=all i] &gt; thead &gt; tr &gt; td, table[rules=all i] &gt; thead &gt; tr &gt; th,
 table[rules=all i] &gt; tbody &gt; tr &gt; td, table[rules=all i] &gt; tbody &gt; tr &gt; th,
 table[rules=all i] &gt; tfoot &gt; tr &gt; td, table[rules=all i] &gt; tfoot &gt; tr &gt; th {
+  border-width: 1px;
   border-style: solid;
 }
 
-table[border] &gt; tr &gt; td, table[border] &gt; tr &gt; th,
-table[border] &gt; thead &gt; tr &gt; td, table[border] &gt; thead &gt; tr &gt; th,
-table[border] &gt; tbody &gt; tr &gt; td, table[border] &gt; tbody &gt; tr &gt; th,
-table[border] &gt; tfoot &gt; tr &gt; td, table[border] &gt; tfoot &gt; tr &gt; th {
-  border-width: 1px;
+table[rules=groups i] &gt; colgroup {
+  border-left-width: 1px;
+  border-left-style: solid;
+  border-right-width: 1px;
+  border-right-style: solid;
+}
+table[rules=groups i] &gt; thead,
+table[rules=groups i] &gt; tbody,
+table[rules=groups i] &gt; tfoot {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
+}
+
+table[rules=rows i] &gt; tr, table[rules=rows i] &gt; thead &gt; tr,
+table[rules=rows i] &gt; tbody &gt; tr, table[rules=rows i] &gt; tfoot &gt; tr {
+  border-top-width: 1px;
+  border-top-style: solid;
+  border-bottom-width: 1px;
+  border-bottom-style: solid;
 }</pre>
 
+
+
   <p>In <a href="#quirks-mode">quirks mode</a>, the following rules are also
   expected to apply:</p>
Received on Friday, 14 October 2011 00:39:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 14 October 2011 00:39:15 GMT