W3C home > Mailing lists > Public > www-style@w3.org > February 2005


From: Ian Hickson <ian@hixie.ch>
Date: Thu, 10 Feb 2005 08:34:57 +0000 (UTC)
To: Jesper Tverskov <jesper.tverskov@mail.tele.dk>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.61.0502100825430.4454@dhalsim.dreamhost.com>

On Wed, 9 Feb 2005, Jesper Tverskov wrote:
> Only Mozilla/Firefox wants us to both style the html element and the 
> body element for the same thing. This is redundant and no fun since the 
> DTD doesn't allow the use of the class attribute in the html element.

You can just replace "body" with "html" in your stylesheet and it will 
work everywhere. (The fact that "class" and "id" don't apply to <html> 
elements in HTML4 is IMHO an error with HTML4, and it will be corrected in 
the Web Apps 1.0 proposal [1]. Browsers support this anyway so if you want 
to use class and id attributes on <html> it will work.)

FWIW, Opera do consider the fact that styling <body> affects the whole 
canvas in XHTML in Opera to be a bug (I work for Opera).

[1] http://whatwg.org/specs/web-apps/current-work/

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 10 February 2005 08:34:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC