- From: David Chambers <david.chambers.05@gmail.com>
- Date: Thu, 7 Oct 2010 03:50:01 +1300
- To: Alexander Shpack <shadowkin@gmail.com>
- Cc: www-style@w3.org
- Message-ID: <AANLkTin2pxsZ4CPcQbd0TSFaj1f+Zk1qOe+Lr7Erv6dp@mail.gmail.com>
Boris Zbarsky <bzbarsky@mit.edu> wrote: 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. Great. Thanks for this info. Boris Zbarsky <bzbarsky@mit.edu> 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? On 7 October 2010 03:40, Alexander Shpack <shadowkin@gmail.com> wrote: > 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:50:35 UTC