W3C home > Mailing lists > Public > www-style@w3.org > October 2001

Re: How is it possible to devise such a feeble system?

From: Jesse McCarthy <mccarthy36@earthlink.net>
Date: Wed, 24 Oct 2001 13:11:57 -0400
To: www-style@w3.org
Message-ID: <MWMail.esrbepih@host.none>
>If that was the case, then if I was to apply a style to the body
>element, and give it a background color, then I would only see the
>background color on some of the page (for small documents), correct?
>But this is not the case.  Instead, the background color is applied to
>the entire viewport.  The body takes up the entire viewport (by
>default).
>

That's true Peter, but that is a result of the browser not complying with the 
CSS 2 spec.  According to the spec, if you supply a value of 'auto', or no 
value at all for width for HTML and BODY, HTML and therefore BODYT would occupy 
the entire width of the viewport.  If the value provided for height for HTML 
and BODY were 'auto', or no value provided at all, the height would be zero if 
they contained no content, or whatever the height of the content is if they do. 
 What Chris told you would be true by default, but if you specify a height 
 value of 100% for HTML and BODY, the BODY will occupy the entire height of the 
 viewport.  And like I said, what you're describing as the default is the non-
 conforming default behavior of the browser, contrary to the CSS 2 spec. 
Received on Wednesday, 24 October 2001 13:20:45 GMT

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