- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 14 Oct 2011 00:47:24 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv4809 Modified Files: rendering.html spec.html Log Message: Try to improve compat for legacy <table border='' rules='' and frames=''> attributes. (whatwg r6681) [updated by splitter] Index: rendering.html =================================================================== RCS file: /sources/public/html5/spec/rendering.html,v retrieving revision 1.122 retrieving revision 1.123 diff -u -d -r1.122 -r1.123 --- rendering.html 12 Oct 2011 23:46:24 -0000 1.122 +++ rendering.html 14 Oct 2011 00:47:07 -0000 1.123 @@ -972,12 +972,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; } @@ -1067,20 +1064,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, @@ -1093,40 +1096,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="infrastructure.html#quirks-mode">quirks mode</a>, the following rules are also expected to apply:</p> Index: spec.html =================================================================== RCS file: /sources/public/html5/spec/spec.html,v retrieving revision 1.1720 retrieving revision 1.1721 diff -u -d -r1.1720 -r1.1721 --- spec.html 13 Oct 2011 00:46:35 -0000 1.1720 +++ spec.html 14 Oct 2011 00:47:13 -0000 1.1721 @@ -324,7 +324,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> @@ -349,7 +349,7 @@ <a href="Overview.html">single page HTML</a>, <a href="spec.html">multipage HTML</a>, <a href="author/">web developer edition</a>. -This is revision 1.5357. +This is revision 1.5358. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2011 <a href="http://www.w3.org/"><abbr title="World Wide @@ -470,7 +470,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
Received on Friday, 14 October 2011 00:47:34 UTC