W3C home > Mailing lists > Public > www-style@w3.org > May 2008

Re: CSS2.1 issue 6 test case

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 17 May 2008 14:47:42 -0700
To: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, Arron Eicholz <Arron.Eicholz@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20080517214742.GA32044@pickering.dbaron.org>

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.


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Saturday, 17 May 2008 21:48:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:36 UTC