On Apr 2, 2010, at 9:14 PM, Philip TAYLOR wrote:

> As a supplementary question to this, I agree that the
> spec. for XHTML permits this (whilst the spec. for
> HTML does not) but in what circumstance(s) do you
> believe it to be useful ?  I ask because there can
> (and must) be exactly one instance of an HTML element,
> so why would a CSS declaration for the HTML element
> not be as useful as a CSS declaration for its ID ?

A number of scripts out there append a class to the root element (html) to 
style elements based on that. Modernizr comes to mind:
http://www.modernizr.com/


<html class="is-ie-6">

html.is-ie-6 body { display: none; }
or something like that... :-)

Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to