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

Re: [CSS21] CR-CSS21-20070719, 8.3.1 Collapsing in presence of min/max-height, small correction suggested

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 21 Jul 2008 18:05:38 -0700
To: www-style@w3.org
Message-ID: <20080722010538.GB29497@pickering.dbaron.org>

On Monday 2008-07-21 13:53 -0700, Arron Eicholz wrote:
>   - Firefox collapses when min-height or max-height is equal to the height,
>     *eats* the inner margins both when max-height is in effect /and/ when
>     min-height is in effect. We would expect that disabling margin-collapsing
>     when min-height is effect would cause the margins to add, not the inner
>     margin to be truncated.

As Bruno Fassino points out, this expectation is incorrect since
10.7 says the rules are re-run treating 'max-height' or 'min-height'
as though it were the computed value for 'height'.  Thus the inner
margin can potentially be truncated by the 'height'.

> and therefore this entire paragraph should be removed from the spec.

I don't think it makes sense for margins that aren't anywhere close
to being "adjoining" to collapse.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Tuesday, 22 July 2008 01:06:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT