Re: "Headings" selector?

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 UTC