W3C home > Mailing lists > Public > www-style@w3.org > July 2010

Re: [CSS21] Another ambiguity in the definition of "containing block"

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 14 Jul 2010 02:26:27 -0400
Message-ID: <4C3D5893.2000808@mit.edu>
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style list <www-style@w3.org>
On 7/13/10 5:00 PM, fantasai wrote:
> Add to section 9.2.1.1
> <http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level>:
>
> | 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.
>
> Because that's the best I can come up with here.

That wording suggests that the anonymous block box in fact forms a 
containing block.  Does it?  Why can we not just say that anonymous 
block boxes are not considered when determining the containing block? 
Is there nothing other than percentages that depends on the containing 
block (or more importantly its height, since the content width of the 
anonymous block box is the content width of its parent)?

-Boris
Received on Wednesday, 14 July 2010 06:27:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:29 GMT