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

>> 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 UTC