Re: Issue 158 proposed text

Thanks Anton for this detailed analysis!

Just a small comment here:

>> <div style="background: yellow">before</div>
>> <div style="background: lime">
>>        <div style="float: left; height: 50px; width: 100px;
>> background:blue"></div>
>>        <div style="clear: left; margin-bottom: 100px"></div>
>> </div>
>> <div style="background: yellow">next</div>
>>
>> (you can see it at
>> http://brunildo.org/test/margin-collapse-clear-child-9.html)
>> What behavior do we want for this test case?
>
> My back-of-a-large-envelope calculations are as follows.
[...]
>
> Not quite, but the right kind of idea, as we've just seen!  We've got a
> 200px-high lime div, which doesn't seem ideal.  (No browser gets this
> right, as I'm sure you've already observed: Opera 10.53, Safari 4 and
> and IE8 think the div should be 50px high [and goodness knows where
> they're putting the 100px margin]; IE6 thinks the div should be 100px
> high, whilst IE7 thinks it should be zero height but uses a 100px space
> instead; Firefox 3.6 thinks the div should be 150px high.)


Of course Firefox behavior could be considered correct according to
the current formulation of the spec, which (albeit imprecisely)
includes in the hypothetical position only 'previous' margins. And it
will remain correct with a new formulation saying that the
hypothetical position is computed assuming a non-zero bottom border on
the clearing element (or something like that).


Bruno

-- 
Bruno Fassino http://www.brunildo.org/test

Received on Monday, 5 July 2010 17:07:15 UTC