W3C home > Mailing lists > Public > www-style@w3.org > March 2015

RE: [css-tables][css2.1] What should the measurement of the table be?

From: Greg Whitworth <gwhit@microsoft.com>
Date: Tue, 24 Mar 2015 17:01:38 +0000
To: Robert Hogan <robhogan@gmail.com>, Boris Zbarsky <bzbarsky@mit.edu>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <CY1PR03MB143979D3E1DF65C2BA80A1F0A40A0@CY1PR03MB1439.namprd03.prod.outlook.com>
> Case One: 
> In this case all browsers currently agree on making the cell, row and table viewport height - even though the cell has a specified height of 1px. We should retain this behaviour and let the content of the cell size to the viewport using the computed height of its containing block (the cell) to compute its own height.

We agree on this one.

> Case Two: 
> In this case the cell is not expanding to honour the percentage height of a row or table ancestor so descendants are constrained by its specified height.

I agree with your assessment that they should honor the height of the row, but the cells (as Boris pointed out) goes into driving the height of the row. If you change the div.container to have a height of auto you can see this take effect as the cells end up being the height of max content and this makes it so that it goes outside of the specified height of the cell: http://jsbin.com/jagekeviqo/1/edit I think what FF does when resolving percentages is odd as they are resolving them against the specified value instead of the used value for td's (I expand on this for case 3).

> Case Three: 
> This is a variation on Case One, but both the row and cell have a specified height. In order to remain consistent with the behaviour in Case One we let the row and cell expand to fill the height of the table. Likewise the content honours the computed height of its containing block the cell and also fills the viewport.

I agree with this one. Boris said that Gecko is correct here, but that seems strange to me because it isn't capping the cell at 1px it is just resolving the div.container to 1px since it is resolving 100% against 1px instead of 100vh (which is actually what the td is). I gave the cell a yellow background and you can see that  Firefox is stretching the height of the cell: http://jsbin.com/cizigetafo/2/edit?html,js,output

Received on Tuesday, 24 March 2015 17:02:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:52 UTC