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

Le 2015-03-08 15:47, Gérard Talbot a écrit :


> -------
> 
> Another issue with the code is that the cell has a border

Err... I wanted to say the *_child_* has a border

Gérard


and that
> creates an overconstrained situation:
> 
> <div class="lichess_ground" style="display: table-cell; height: 
> 202px;">
>       <div class="replay" style="height: 100%; border: 1px solid 
> #ccc;">
> 
> "
> In CSS 2.1, the height of a cell box is the minimum height required by
> the content.
> "
> http://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html#height-layout
> 
> So, the height of the table cell must increase to 204px... which may
> not be (highly probable) what the original author initially aimed
> at/for.
> 
> Computed height value in Firefox36 is, as expected, **_204px_** and not 
> 202px.
> 
> Computed height value in Chrome41.0.2272.76 is **_202px_**: that's a
> bug. And notice that inner div gets resized to 200px. Chrome resizes
> the descendant when it should be resizing the cell.
> 
> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/overconstrained-CSS-table-cell-height.html
> 

Received on Sunday, 8 March 2015 21:02:47 UTC