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

Re: Specificity: nth-of-type versus attribute selector?

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 4 Jul 2010 13:17:36 -0700
To: Anton Prowse <prowse@moonhenge.net>
Cc: www-style@w3.org
Message-ID: <20100704201736.GA14924@pickering.dbaron.org>
On Sunday 2010-07-04 21:59 +0200, Anton Prowse wrote:
> That's what you need my hypothetical :nth-of-specialized-kind
> pseudo-class ;-)
> 
> :nth-of-specialized-kind(odd, img[src*="photo") {
> 	[...]
> }

If we ever do have a selector like this, I'd suggest calling it just
:nth-of().  For example: ':nth-of(odd, img[src*="photo"])', or
perhaps (with the arguments the other way around)
':nth-of(img[src*="photo"], odd)'.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Sunday, 4 July 2010 20:22:06 GMT

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