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

Re: [CSS21] Height of cell box should not be influenced by 'height'

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 2 Jan 2008 12:13:37 -0500
To: www-style@w3.org
Cc: Bruno Fassino <fassino@gmail.com>
Message-ID: <20080102171337.GA15056@ridley.dbaron.org>

On Tuesday 2008-01-01 19:34 +0100, Bruno Fassino wrote:
> If I'm not missing the point, then it seems that there is currently no
> agreement among browsers. A simple test case
> http://www.brunildo.org/test/td_height1.html shows that in Safari (3.0.4)
> and in Firefox (2.0.11, 3 beta)  baseline vertical alignment of cells may
> make a row taller than the heights specified on single cells.  In Opera
> (9.25, 9.5) and in IE (6, 7) this doesn't happen (unless required by cells
> content.)

Interesting.  Thanks for the testcase -- it's exactly what's needed
for this decision.  (I was actually surprised that all those
browsers supported vertical-align:baseline on table cells.  I recall
support being quite limited a few years ago.)

> FWIW, I prefer your second formulation (but this would make FF and Safari
> wrong?)

I think I do as well, since it seems more consistent to me.  With
the first formulation (matching Firefox and Safari), the algorithm
seems sort of like:

 * handle top/middle/bottom vertical-align
 * apply height
 * handle baseline vertical-align

whereas with the second (matching IE and Opera) the algorithm seems

 * handle vertical-align
 * apply height

(The algorithm descriptions are really rough conceptual models,
since they can certainly be implemented other ways, and probably are.)


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Wednesday, 2 January 2008 17:13:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:32 UTC