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

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