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

Re: XHTML as XML

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Thu, 10 Feb 2005 15:42:34 +0100
Message-ID: <420B72DA.8090008@annevankesteren.nl>
To: Ryan Cannon <ryan@ryancannon.com>
CC: Jesper Tverskov <jesper.tverskov@mail.tele.dk>, www-style@w3.org

Ryan Cannon wrote:
> Wouldn't
> 
> html { margin: 0; padding: 0 }
> head { display: none }
> body {height: 100%; width: 100% }
> 
> Do the trick?

No, the HTML element has a height of auto. The BODY element will just
fill that up, but that is not equal to the canvas and therefore it does
not work.


> It doesn't really make sense for the body element to be magical, as
> 
> head { display: block }
> 
> is entirely possible,

That is also possible in text/html documents.

The point is that in application/*+xml documents which have a xhtml:body
element the 'background' property is not propagated to the canvas as
happens with the HTML BODY element.


> I think the real problem is that the default stylesheet for the 
> Mozilla-based browsers includes unnecessary whitespace--which you can
> easily work around.

?


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Thursday, 10 February 2005 14:42:58 GMT

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