W3C home > Mailing lists > Public > www-style@w3.org > February 2011

[CSS21] WD 07 Dec. 2010: errors in section 17.6.1 Separated borders model and width of table

From: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 22 Feb 2011 17:00:45 -0800
Message-ID: <fafa245604e9f73b2f5f0352427bad5a.squirrel@cp3.shieldhost.com>
To: "W3C style mailing list" <www-style@w3.org>
Hello,

CSS 2.1, section 17.6.1 The separated borders model
http://www.w3.org/TR/CSS21/tables.html#separated-borders

says :
{
The width of the table is the distance from the left inner padding edge to
the right inner padding edge (including the border spacing but excluding
padding and border).

However, in HTML and XHTML1, the width of the <table> element is the
distance from the left border edge to the right border edge.
}

First of all, I propose one small clarifying text tuning:

s/but excluding padding and border/but excluding table padding and table
borders/

---------

Second,


CSS 2.1, section 17.6.1 The separated borders model
http://www.w3.org/TR/CSS21/tables.html#separated-borders
later gives this example:

table      { border: outset 10pt;
             border-collapse: separate;
             border-spacing: 15pt }
td         { border: inset 5pt }
td.special { border: inset 10pt }  /* The top-left cell */

followed with this image:
http://www.w3.org/TR/CSS21/images/tbl-spacing.png

The problem here is that, according to the code, this is an HTML table (eg
<table>), not a CSS table (eg div {display: table;}). Therefore, the width
of such HTML table must be "the distance from the left border edge to the
right border edge", as said earlier. But at the top of the image
http://www.w3.org/TR/CSS21/images/tbl-spacing.png
we can clearly see that the table width excludes the outset border.

Proposed correction:

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/width-table-BC-separated.html

Have I missed something?

Gérard Talbot
-- 
CSS 2.1 Test suite RC5 (January 11th 2011)
http://test.csswg.org/suites/css2.1/20110111/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Wednesday, 23 February 2011 01:01:24 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT