W3C home > Mailing lists > Public > www-style@w3.org > October 2010

Re: "Headings" selector?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 06 Oct 2010 10:54:38 -0400
Message-ID: <4CAC8DAE.5040601@mit.edu>
To: David Chambers <david.chambers.05@gmail.com>
CC: www-style@w3.org
On 10/6/10 10:50 AM, David Chambers wrote:
>     How would you tell that apart from trying to style elements named "h"?
>
> I'm not sure what you mean by this, Boris. Are you able to elaborate?

Sure.  Currently in CSS, this style:

   h { color: green; }

would match the <h> node in this markup:

   <span><h>I should be green</h></span>

We can't just arbitrarily define this one tag selector to mean something 
different.

Now what one _could_ do is introduce a :header pseudo-class or 
something, if it's felt that it would be sufficiently useful....

-Boris
Received on Wednesday, 6 October 2010 15:01:01 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:32 GMT