Re: contradictions between clearance tests

2010/12/1 "Gérard Talbot" <css21testsuite@gtalbot.org>:
> Le Mar 30 novembre 2010 16:59, fantasai a écrit :
>> On 11/24/2010 05:05 PM, L. David Baron wrote:
>>> When I apply the fix to
>>> https://bugzilla.mozilla.org/show_bug.cgi?id=376365 so that the
>>> following tests start passing:
>>> http://test.csswg.org/suites/css2.1/20101027/html4/margin-collapse-clear-005.htm
>>> http://test.csswg.org/suites/css2.1/20101027/html4/margin-collapse-clear-011.htm
>>> then the following tests start failing:
>>> http://test.csswg.org/suites/css2.1/20101027/html4/margin-collapse-164.htm
>>> http://test.csswg.org/suites/css2.1/20101027/html4/margin-collapse-clear-014.htm
>>>
>>> This make me suspect the latter two are incorrect, thanks to the
>>> revision to the spec that was done here:
>>> http://lists.w3.org/Archives/Member/w3c-css-wg/2007JanMar/0535.html
>
> Can someone tell me what is in that
> http://lists.w3.org/Archives/Member/w3c-css-wg/2007JanMar/0535.html
> webpage?
>
> "
> The URL you are requesting requires proper authentication.
>
> The member-only section of the W3C website is not publicly viewable.
> Password authorization is needed for access to the W3C Member Site.
> "
>
> +CC: Bruno Fassino

I got permission from Hixie, so here's the email:

Ok, how about:

Change the following in section 9.5.2:

  If the element's top border edge has not passed the relevant floats,
  then its clearance is set to the amount necessary to place the
  border edge of the block even with the bottom outer edge of the
  lowest float that must be cleared.

to:

  If this hypothetical position of the element's top border edge is
  not past the relevant floats, then its clearance must be set to the
  greater of:

  1. The amount necessary to place the border edge of the block even
  with the bottom outer edge of the lowest float that is to be
  cleared.

  2. The amount necessary to make the sum of the following equal to
  the distance to which these margins collapsed when the hypothetical
  position was calculated:

   * the margins collapsing above the clearance

   * the clearance itself

   * if the block's own margins collapse together: the block's top
     margin

   * if the block's own margins do not collapse together: the margins
     collapsing below the clearance

  Note: The clearance can be negative.





~TJ

Received on Wednesday, 1 December 2010 22:50:23 UTC