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

RE: CSS2.1 issue 6 test case

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Sat, 17 May 2008 14:00:04 -0700
To: "L. David Baron" <dbaron@dbaron.org>, fantasai <fantasai.lists@inkedblade.net>
CC: Arron Eicholz <Arron.Eicholz@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <04F36FB4ED0F85459AA447F72711526F013EF7CDBE8C@DF-GRTDANE-MSG.exchange.corp.microsoft.com>
Attached is another test. I hope it is self-explanatory and does show the difference between the spec and current implementation.

All browsers (FF, Opera, Safari, IE5, IE7, IE8) agree on the "bottom border" rule, even though actual float position with margin collapsing is incorrect in Opera and IE<=7.

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of L. David Baron
Sent: Saturday, May 17, 2008 12:11 PM
To: fantasai
Cc: Arron Eicholz; www-style@w3.org
Subject: Re: CSS2.1 issue 6 test case

On Saturday 2008-05-17 10:57 -0700, fantasai wrote:
> L. David Baron wrote:
>> Could you explain how this test is related to Alex's proposal?
>> Which of the boxes has its top and bottom margins adjoining, and how
>> does the test test for the position of that box?
> Ok, here are three corrected test cases. At least I think they're corrected. :)
> They give different results: the first one seems to indicate that the spec is
> correct, the second two seem to indicate that Alex's proposal is correct.
> http://lists.w3.org/Archives/Public/www-archive/2008May/att-0046/margin-collapsing-issue6a.htm

Could you answer the two above questions (which box, and how are you
measuring its position) for this testcase as well?

(Also, in this testcase, the 10px and 20px margins clearly shouldn't
collapse, since one of them is on a float.)

> http://lists.w3.org/Archives/Public/www-archive/2008May/att-0046/margin-collapsing-issue6b.htm

Can you answer the above two questions for this test as well?

(I think this is the closest thing I've seen to a test for Alex's
proposal, but I think the 'outline' is on the wrong element; it
should be specified for #test rather than #child.  Using 'outline'
does seem like it may well be a correct way to measure the position
of such a box -- the first I've seen so far.  I hadn't thought of

> http://lists.w3.org/Archives/Public/www-archive/2008May/att-0046/margin-collapsing-issue6c.htm

Can you answer the above two questions for this test as well?


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Saturday, 17 May 2008 21:00:49 UTC

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