Re: "Headings" selector?

On Wed, Oct 6, 2010 at 5:29 PM, David Chambers
<david.chambers.05@gmail.com> 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 */ }
> It'd be great to be able to write…
>     h { font-weight: bold; }
> and…
>     #preview h { /* rules */ }
> I don't know how difficult this'd be to implement, but I do know that I'm
> not the only one who'd find it useful. :)
> David

It's useful for HTML only, not XML or other SGML-based languages.

Your proposition was already described, and the best solution for it
is :any() pseudoclass.

Received on Wednesday, 6 October 2010 14:47:21 UTC