W3C home > Mailing lists > Public > www-style@w3.org > January 2012

Re: [CSS21] 17.5.2.1 Fixed table layout and percentages

From: Anton Prowse <prowse@moonhenge.net>
Date: Mon, 23 Jan 2012 23:36:59 +0100
Message-ID: <4F1DE10B.5040005@moonhenge.net>
To: "www-style@w3.org" <www-style@w3.org>
CC: www-style@gtalbot.org, Simon Sapin <simon.sapin@kozea.fr>
On 17/11/2011 00:14, "Gérard Talbot" wrote:
> Le Mer 16 novembre 2011 10:07, Simon Sapin a écrit :

>> 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.

> Table-cells may not have a containing block... you see:
> "
> CSS 2.1 does not define how the height of table cells and table rows is
> calculated when their height is specified using percentage values.
> "

Everything has a containing block.  For non-root non-abspos elements 
it's formed by the content edge of the nearest block container or table 
ancestor box, so in the case of internal table elements it's the table 
box.  (NOTE: the spec (10.1) actually omits the "table box" bit; but it 
used to say that in its earlier incarnations, and the omission was 
introduced (almost certainly by mistake) with the extensive changes for 
the resolution of Issue 120.[1]  It's highly likely that this will be 
corrected in errata.)

There's no reason to suspect that the containing block of a table box is 
anything other than the table wrapper box.

Percentages are often resolved with respect to containing blocks, but 
it's not a hard-and-fast rule, as we see with table boxes.


[1] http://wiki.csswg.org/spec/css2.1#issue-120

Cheers,
Anton Prowse
http://dev.moonhenge.net
Received on Monday, 23 January 2012 22:37:56 GMT

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