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

> 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