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: Gérard Talbot <www-style@gtalbot.org>
Date: Sun, 08 Mar 2015 17:02:16 -0400
To: Greg Whitworth <gwhit@microsoft.com>
Cc: W3C www-style mailing list <www-style@w3.org>
Message-ID: <9735316408308811348037ecd58aceb8@gtalbot.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC