W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [CSS21] transitivity of margin-collapsing and min/max-height

From: Robert Hogan <robhogan@gmail.com>
Date: Mon, 09 Feb 2015 19:04:52 +0000
Message-ID: <CAD1xn+O4v0Nxfxf1NMpEwgmnv6jveXXwAiaK6e7yA6zgT0YwGA@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org
On Sun Feb 08 2015 at 11:08:38 PM L. David Baron <dbaron@dbaron.org> wrote:

> This in turn means that the top and bottom margins of #min-height
> should collapse together despite the min-height, due to the
> vaguely-worded rule "A collapsed margin is considered adjoining to
> another margin if any of its component margins is adjoining to that
> margin."

Wouldn't this contradict the subsequent clarification: "A box's own margins
collapse if the 'min-height'
<http://dev.w3.org/csswg/css2/visudet.html#propdef-min-height> property is
zero, and it has neither top or bottom borders nor top or bottom padding,
and it has a 'height'
<http://dev.w3.org/csswg/css2/visudet.html#propdef-height> of either 0 or
'auto', and it does not contain a line box, and all of its in-flow
children's margins (if any) collapse."
Received on Monday, 9 February 2015 19:05:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC