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

Re: canvas <html> <body>

From: Sigurd Lerstad <sigler@bredband.no>
Date: Wed, 1 May 2002 06:00:58 -0700
Message-ID: <002b01c1f110$3d1c9a60$390573d5@mmstudioproj>
To: <www-style@w3.org>
I'm confused,

How can a stylesheet determine which is the root, html or body ?

When you say: if an element has not been styled. Do you mean by that, that
the element has not been mentioned in a stylesheet? I thought that it would
then take on the default css properties, and the default property for
display is inline, so if html hasn't been styled, it would have display:
inline ?

What am I missing here?

--
Sigurd Lerstad

> In message <002801c1f055$52dc72f0$390573d5@mmstudioproj>, Sigurd Lerstad
> <sigler@bredband.no> writes
> >Hello,
> >
> >If I understand correctly, in XHTML the <html> tag is the canvas and
creates
> >a block box?
>
> Nothing in the (X)HTML specification defines how any given element must
> be rendered (this is for optional style sheets to determine).
>
> So whether <html> or <body> is taken as the root/canvas element for the
> purpose of a particular rendering is dependent either on the style sheet
> language and/or the implementation concerned.
>
> The consensus appears to be that the <html> element can be the canvas
> element for CSS.  (Subject to the user agent's default style sheet.)
>
> It would be bad practice (IMO) to style the <html> element or any of its
> descendants (except <body>) because this would undermine the default
> interpretation of (for example) <head> elements as providing *meta*
> information.  If such information is also intended to be rendered as
> part of the contents of a document, it should (again IMO) also appear in
> the <body> of the document.  This preserves the semantic distinction in
> HTML between the <head> and <body> elements.
>
> --
> George Lund
>
>
Received on Wednesday, 1 May 2002 00:01:01 GMT

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