W3C home > Mailing lists > Public > public-css-testsuite@w3.org > January 2010

redone margin-collapse-027.xht (was RE: 3 Microsoft margin collapsing tests (wrt float, clear and clearance))

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Mon, 25 Jan 2010 15:43:24 -0800
Message-ID: <65a3cbc247594d26286eab56ea7471b7.squirrel@cp3.shieldhost.com>
To: "Arron Eicholz" <Arron.Eicholz@microsoft.com>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>

>> http://test.csswg.org/source/contributors/microsoft/submitted/Chapter_8/
>> margin-collapse-027.xht

[...snipped...]


> It is changed and maybe makes more sense. Let me
> know if it's still a little weird.
>

[...snipped...]

> --
> Thanks,
> Arron Eicholz

The current

<meta name="assert" content="When two siblings are adjoining and their
margins collapse the bottom margin of the last sibling does not collapse
its bottom margin with the parents bottom margin when its own margins
collapse and clearance has occurred." />

is still going to be painful, difficult to figure out for many people.

My suggestion:

<meta name="assert" content="When two siblings are adjoining and their
margins collapse, then the bottom margin of the last sibling does not
collapse its bottom margin with the parent's bottom margin when its own
margins collapse and clearance has occurred." />

And how about "translating" it a bit for ordinary/intermediate CSS
authors? ... by appending this:

"
In the test, #div3 and #div5 margins collapse. Then, the resulting
margin-bottom does not collapse with #div2's margin-bottom because
#div2's margins collapse and because a clearance (above #div5) was
created (a -0.5em).
"

I really think CSS 2.1 test suite testcases should do everything
reasonable to make testcases understandable, "decipherable" for
willing-to-comply-with-and-adopt-web-standards web authors. CSS 2.1 test
suite should be a additional/complementary reference acting to help
learn+understand and less of a measuring tool in a browsers war.

That test uses 6 <div>s, float, clear, clearance involved, margins, em
unit.. It's blatant that such testcase can not be an easy-to-figure-out
testcase for many people. I say that testcase needs to reach out a bit
more.

regards, Gérard
-- 
Contributions to the CSS 2.1 test suite:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

CSS 2.1 test suite (pre-alpha):
http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/

CSS 2.1 test suite contributors:
http://test.csswg.org/source/contributors/
Received on Monday, 25 January 2010 23:43:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:52:01 GMT