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

Re: canvas <html> <body>

From: Etan Wexler <ewexler@stickdog.com>
Date: Fri, 10 May 2002 20:36:17 -0700
To: Ian Hickson <ian@hixie.ch>, www-style@w3.org
Message-ID: <3CDC2F41.27858.BF0187@localhost>
Ian Hickson wrote:

> Why can an inline element not be a containing block?
> 
> That happens all the time, e.g. every inline element that has 
> 'position:relative' becomes a containing block for absolutely positioned 
> descendants.

You make a good point but, at least in CSS2, the root element cannot 
have a calculated 'position' value of 'relative'.  With a 'position' value of 
'static', an inline element does not establish a containing block.  We 
could add an exception for root elements.  It is simpler and cleaner, 
though, to specify that the root element does not establish the initial 
containing block but rather fits in an initial containing block chosen by 
the user agent (for example, a browser window's content area).

-- 
Etan Wexler <mailto:ewexler@stickdog.com>
Received on Friday, 10 May 2002 23:50:34 GMT

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