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

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 UTC