W3C home > Mailing lists > Public > www-style@w3.org > July 2010

Re: Issue 158 proposed text

From: Bruno Fassino <fassino@gmail.com>
Date: Mon, 5 Jul 2010 19:06:41 +0200
Message-ID: <AANLkTilEZYc3YRdQCksA_vg5SvubOtewPuGxB3KQmWUS@mail.gmail.com>
To: Anton Prowse <prowse@moonhenge.net>
Cc: www-style list <www-style@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:29 GMT