W3C home > Mailing lists > Public > www-style@w3.org > October 2013

Re: [CSS21] Margin collapsing with negative margins

From: Sylvain Galineau <galineau@adobe.com>
Date: Thu, 24 Oct 2013 18:23:10 -0700
To: Gérard Talbot <www-style@gtalbot.org>, W3C www-style mailing list <www-style@w3.org>
Message-ID: <CE8F1583.F4A7%galineau@adobe.com>

On 10/24/13 5:17 PM, "Gérard Talbot" <www-style@gtalbot.org> wrote:

>In this test

>why isn't there an orange gap of 1em (50px) separating the 2 blue
>I have examined this test from all angles. What am I missing?
>Thanks, Gérard

Well, if one reads the definition you quote literally:

 "the maximum of the absolute values of the negative adjoining margins" ->
2em (the absolute value of the -2em margin-top)

 "the maximum of the positive adjoining margins." -> 2em (the
margin-bottom of #child-of-first-parent)

 "is deducted from" -> 2em-2em == 0em ?

Received on Friday, 25 October 2013 01:23:35 UTC

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