Re: XHTML as XML

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 UTC