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

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 UTC