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

Re: [CSS21][17.5.2.1 Fixed table layout] Imprecise sentence; editorial improvement proposed

From: Gérard Talbot <www-style@gtalbot.org>
Date: Mon, 21 Nov 2011 08:33:30 -0800
Message-ID: <cd6545ad8934f2ceb8cd8eaea6178b30.squirrel@gtalbot.org>
To: "W3C www-style mailing list" <www-style@w3.org>

Le Jeu 17 novembre 2011 15:06, "Gérard Talbot" a écrit :
> Hello,
>
> I believe there is a sentence in section 17.5.2.1 which is not clear and
> not precise. I'm giving a large quotation so that context is restored.
>
> "
> In the fixed table layout algorithm, the width of each column is
> determined as follows:
>
> 1.    A column element with a value other than 'auto' for the 'width'
> property sets the width for that column.
> 2.    Otherwise, a cell in the first row with a value other than 'auto'
> for the 'width' property determines the width for that column. If the cell
> spans more than one column, the width is divided over the columns.
> 3.    Any remaining columns equally divide the remaining horizontal table
> space (minus borders or cell spacing).
>
> The width of the table is then the greater of the value of the 'width'
> property for the table element and the sum of the column widths (plus cell
> spacing or borders).
> "
> 17.5.2.1 Fixed table layout
> http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout
>
> What to change and how?
>
> "(plus cell spacing or borders)": I think this is imprecise and not clear.
>
> What to edit instead? How to replace it? With the following:
>
> "(plus table border-spacing if the table uses the separated borders border
> model or plus half of table borders if the table uses the collapsing
> borders model)."

I was wrong here.

The width of a CSS table is the distance from the left inner padding edge
to the right inner padding edge (including the border spacing but
excluding table padding and table borders).

But the width of an HTML <table> is the distance from the left border edge
to the right border edge.

The "(plus cell spacing or borders)" avoids getting into details and is
very loose. It should at least identify the borders as the table borders.

Gérard

>
> And even here, it can still be tricky as the left table border is half the
> leftmost cell's collapsed left border and the right table border is half
> the rightmost cell's collapsed right border.
>
> "
> The left border width of the table is half of the first cell's collapsed
> left border, and the right border width of the table is half of the last
> cell's collapsed right border.
> "
>
> regards, Gérard
> --
> CSS 2.1 Test suite RC6, March 23rd 2011
> http://test.csswg.org/suites/css2.1/20110323/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
>
>
>


-- 
CSS 2.1 Test suite RC6, March 23rd 2011
http://test.csswg.org/suites/css2.1/20110323/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 Monday, 21 November 2011 16:34:07 GMT

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