- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 14 Oct 2011 00:38:59 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv3931 Modified Files: Overview.html Log Message: Try to improve compat for legacy <table border='' rules='' and frames=''> attributes. (whatwg r6681) Index: Overview.html =================================================================== 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 > 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] > tr > td, table[border] > tr > th, +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 { + border-width: 1px; + border-style: inset; +} table[rules=none i] > tr > td, table[rules=none i] > tr > th, table[rules=none i] > thead > tr > td, table[rules=none i] > thead > tr > th, table[rules=none i] > tbody > tr > td, table[rules=none i] > tbody > tr > th, @@ -65019,40 +65022,49 @@ table[rules=rows i] > thead > tr > td, table[rules=rows i] > thead > tr > th, table[rules=rows i] > tbody > tr > td, table[rules=rows i] > tbody > tr > th, table[rules=rows i] > tfoot > tr > td, table[rules=rows i] > tfoot > tr > th { + border-width: 1px; border-style: none; } - -table[rules=groups i] > colgroup, table[rules=groups i] > thead, -table[rules=groups i] > tbody, table[rules=groups i] > tfoot { - border-style: solid; -} - -table[rules=rows i] > tr, table[rules=rows i] > thead > tr, -table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > tr { - border-style: solid; -} - table[rules=cols i] > tr > td, table[rules=cols i] > tr > th, table[rules=cols i] > thead > tr > td, table[rules=cols i] > thead > tr > th, table[rules=cols i] > tbody > tr > td, table[rules=cols i] > tbody > tr > th, table[rules=cols i] > tfoot > tr > td, table[rules=cols i] > tfoot > tr > th { - border-style: none solid none solid; + border-width: 1px; + border-style: none solid; } - table[rules=all i] > tr > td, table[rules=all i] > tr > th, table[rules=all i] > thead > tr > td, table[rules=all i] > thead > tr > th, table[rules=all i] > tbody > tr > td, table[rules=all i] > tbody > tr > th, table[rules=all i] > tfoot > tr > td, table[rules=all i] > tfoot > tr > th { + border-width: 1px; border-style: solid; } -table[border] > tr > td, table[border] > tr > th, -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 { - border-width: 1px; +table[rules=groups i] > colgroup { + border-left-width: 1px; + border-left-style: solid; + border-right-width: 1px; + border-right-style: solid; +} +table[rules=groups i] > thead, +table[rules=groups i] > tbody, +table[rules=groups i] > tfoot { + border-top-width: 1px; + border-top-style: solid; + border-bottom-width: 1px; + border-bottom-style: solid; +} + +table[rules=rows i] > tr, table[rules=rows i] > thead > tr, +table[rules=rows i] > tbody > tr, table[rules=rows i] > tfoot > 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:01 UTC