W3C home > Mailing lists > Public > public-css-testsuite@w3.org > November 2011

Re: Questions on [RC6] anonymous-boxes-001

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 16 Nov 2011 16:36:27 +1300
Message-ID: <4EC32FBB.9040501@mit.edu>
To: css21testsuite@gtalbot.org
CC: Public CSS test suite mailing list <public-css-testsuite@w3.org>
On 11/16/11 12:22 PM, "Gérard Talbot" wrote:
> 1- #child is floated left: why?

Because this test is testing the behavior of a float with a percentage 
height.  That's the whole purpose of the test.  Note that the box 
structure would be totally different if this were not a float (in 
particular, the anonymous block that the <meta name="assert"> talks 
about would not be present).

> I do not see why it would need to or what left-floating it accomplishes.

It changes the box structure such that an anonymous block is introduced.

> The only anonymous block box I see is represented by the non-breaking
> space and nothing can be referring to it anyway. #child is not inside an
> anonymous block box.

It is, as I understand the spec.  It certainly was in the 
implementations that failed this test when I wrote it.

If you want to try harder to make sure that it is, perhaps an &nbsp; 
before #child is appropriate.

> "Anonymous block boxes are ignored when resolving percentage values that
> would refer to it: the closest non-anonymous ancestor box is used
> instead. For example, if the child of the anonymous block box inside the
> DIV above needs to know the height of its containing block to resolve a
> percentage height, then it will use the height of the containing block
> formed by the DIV, not of the anonymous block box."
> http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level

Yes, that's the spec section this test is testing.

-Boris
Received on Wednesday, 16 November 2011 03:37:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 16 November 2011 03:37:31 GMT