Re: "Headings" selector?

On 10/6/10 10:29 AM, David Chambers wrote:
> It's not uncommon to see…
>
>      h1, h2, h3, h4, h5, h6 { font-weight: bold; }
>
> Yesterday I was forced to write…
>
>      #preview h1, #preview h2, #preview h3, #preview h4, #preview
> h5, #preview h6 { /* rules */ }

There have been proposals for an :any selector, say, which would let 
your write:

   #preview :any(h1, h2, h3, h4, h5, h6) { /* rules */ }

Current Gecko (2.0) implements this as :-moz-any if you want to 
experiment with it.

> It'd be great to be able to write…
>
>      h { font-weight: bold; }

How would you tell that apart from trying to style elements named "h"?

-Boris

Received on Wednesday, 6 October 2010 14:41:38 UTC