Previous Message
Next Message

Using clearing elements to prevent margin collapse

Sent by Bruno Fassino on 19 July 2004 22:10


Philippe Wittenbergh wrote:

> I moved all test files mentioned in this thread to a permanent
> location, starting from:
> <http://dev.l-c-n.com/margin_collapse/>
> and linked from there

First of all, thanks to you and to Michael Ryznar for this interesting
discussion.
I agree on all the conclusions. But still have some perplexity on one of the
test cases.
This is test 3 of your first page. You explicitly assert that the vertical
distance between float B and the pink div should _not_ be 50px.  So you seem
to agree with Mozilla that, in case of a empty clearing div, lets the margin
of a following div to slide through the clear, collapsing with the clearance
above the clear. If this your interpretation?  I'm not convinced this
behaviour is correct according to the spec, at least the 2.1, but I'm not
sure.
Morover in this same case if you check the position of the clear with the
Mozilla DOM Inspector, it seems to be erroneously located _before_ the first
float. Don't know if this is significant.
Opera 7 has shown other problems here, so it is probably not so reliable,
but Safari seems to display a 50px space here. What do you think?

Bruno

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: