Re: CSS2.1 issue 6 test case

On Saturday 2008-05-17 14:00 -0700, Alex Mogilevsky wrote:
> Attached is another test. I hope it is self-explanatory and does
> show the difference between the spec and current implementation.

I'm presuming that the answer to my first question (which element is
the one that meets the conditions for which you're proposing we
change the behavior) is the one with class="test"  (But it would
really help if you actually said that.)

So, presumably, what you're trying to test here is the position of
the element with class="test".  However, this isn't testing that
directly; instead, it's testing the effect of that position on the
position of the anonymous block that surrounds the float:
  # If the element's margins are collapsed with its parent's top
  # margin, the top border edge of the box is defined to be the same
  # as the parent's.
  (8.3.1, immediately above the bullet you propose changing)
through the effect of the anonymous block's position on the float
positioning rules in 9.5.1 (rule 4):
  # A floating box's outer top may not be higher than the top of its
  # containing block. When the float occurs between two collapsing
  # margins, the float is positioned as if it had an otherwise empty
  # anonymous block parent taking part in the flow. The position of
  # such a parent is defined by the rules in the section on margin
  # collapsing. 
Despite being overly complicated, it seems to me, initially, that
this is a valid testcase for the issue.

In that case, I'm OK with the change you propose.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Saturday, 17 May 2008 21:48:30 UTC