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

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

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Tue, 6 Jul 2010 12:52:33 +0200
Message-Id: <3D510F15-AFB9-4D47-B4B2-1381B92D7D57@crissov.de>
To: CSS WWW Style <www-style@w3.org>
L. David Baron:
> 
> :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)'.

  img[src*="photo"]:nth(odd)

looks more intuitive to me, but

  img:nth(odd)[src*="photo"]

looks strange.
Received on Tuesday, 6 July 2010 10:53:07 GMT

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