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

RE: CSS2.1 issue 6 test case

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Sat, 17 May 2008 15:09:31 -0700
To: "L. David Baron" <dbaron@dbaron.org>
CC: fantasai <fantasai.lists@inkedblade.net>, Arron Eicholz <Arron.Eicholz@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <04F36FB4ED0F85459AA447F72711526F013EF7CDBE91@DF-GRTDANE-MSG.exchange.corp.microsoft.com>
Great, I am glad we have a agreement.

Yes, the element with class "test" is one that tests the rule.

And you are right, using a float as an indication of element position does make it more complicated. Attached is another version, using outline. I am not sure if I can make it any simpler...

Thanks
Alex

-----Original Message-----
From: L. David Baron [mailto:dbaron@dbaron.org]
Sent: Saturday, May 17, 2008 2:48 PM
To: Alex Mogilevsky
Cc: fantasai; Arron Eicholz; www-style@w3.org
Subject: 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 22:10:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:06 GMT