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

[CSS21] 17.5.2.1 Fixed table layout and percentages

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Wed, 16 Nov 2011 19:07:12 +0100
Message-ID: <4EC3FBD0.6040109@kozea.fr>
To: "www-style@w3.org" <www-style@w3.org>
Hi,

In section 17.5.2.1 Fixed table layout:

Here is how I understand after several reads:

The table first gets a *tentative width* either from its `width` 
property (if not auto) or from the algorithm of 10.3.3 for blocks. 
Percentages refer to the containing block. I could not find this written 
anywhere, but I assume that the table wrapper box (see 17.4) is *not* 
the table’s containing block although it is a block container.

Then some columns get a width, also from `width` properties. Again, I 
guess that the containing block of columns and cells is the table box. 
So percentage widths refer to the *tentative width* of the table, since 
its used width is not known yet.

The remaining space is then divided for columns that do not have a width 
yet. The remaining space is the tentative width minus everything else. 
(The used width is still not known.) Now what happens if this result is 
negative or zero? Is the width of the remaining columns zero or some 
other arbitrary value?

Finally the used width of the table is set to the greater of its `width` 
property and the sum of all its content.

Whether or not this analysis is correct or close to what browsers do, 
this section needs to properly define a table’s tentative width or a 
similar concept and explicitly use it where appropriate.

PS: what is the process for updating specifications that are already REC?

Regards,
-- 
Simon Sapin
Received on Wednesday, 16 November 2011 18:08:05 GMT

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