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

Re: XHTML as XML

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Thu, 10 Feb 2005 15:24:51 +0100
To: www-style@w3.org
Message-ID: <opslzjnple4b88i7@crissov>

*Laurens Holst* <lholst@students.cs.uu.nl>:
>
>  From what I gather, you are talking about the fact that in an XHTML  
> page, the body tag doesn’t automatically gain the height of the  
> viewport, but instead sizes to the content like any other box does,  
> right?
>
> body { height: 100% } will usually do the trick.

That, however, can easily and conformantly be included into the UA default  
stylesheet for 'application/xhtml+xml' resources as well. It does not even  
have to differ from the 'text/html' one AFAICS.

> And in the end, the behaviour is more logical.

Indeed.

> On a sidenote, obviously there is no real need for either an id or a  
> class attribute on the html element (from a styling perspective at  
> least) as it only occurs once in a document.

A stylesheet not necessarily applies to one marked up document only and  
thus may apply to more than one 'html' instance, but there's no way (yet)  
to make an external CSS know which of these it currently is being applied  
onto except with unique attributes (or better unique values of common  
attributes).
Received on Thursday, 10 February 2005 14:26:05 GMT

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