Re: % height on <html> (was Re: Table height/width properties)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Subject: Re: % height on <html> (was Re: Table height/width properties)
Date: Tue, Jul 3, 2001, 9:12 AM

> * Tantek Celik wrote:
>>And here we have a problem.
>>
>>Section 9.1.2 of CSS2
>>
>> http://www.w3.org/TR/REC-CSS2/visuren.html#containing-block
>>
>>says: "The root of the document tree generates a box that serves as the
>             ^^^^^^^^^^^^^^^^^^^^^^^^^
>>initial containing block for subsequent layout."
>>
>>Whereas section 10.1 of CSS2
>>
>> http://www.w3.org/TR/REC-CSS2/visudet.html#containing-block-details
>>
>>says: "The containing block (called the initial containing block) in which
>>the root element lives is chosen by the user agent. "
>      ^^^^^^^^^^^^
>
>>CSS2 disagrees with itself.
>
> No, the document root is always the parent of the document ("root")
> element, don't mix them up.

The document tree consists of elements, therefore the root of the document
tree is the root element.

CSS does not discuss anything else structural outside of the document's tree
of elements.  CSS does discuss the viewport, but that is a presentational
abstraction - not a structural one.

Tantek

Received on Tuesday, 3 July 2001 13:23:24 UTC