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

Re: [Selectors3] :nth-child(-negative)

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 18 Aug 2010 20:21:19 -0700
Message-ID: <AANLkTinhrCNY2wzHALVMGAgjEZV6NazB_jp3iUeJQYre@mail.gmail.com>
To: Behdad Esfahbod <behdad@behdad.org>
Cc: Christoph Päper <christoph.paeper@crissov.de>, "www-style@w3.org list" <www-style@w3.org>
On Wed, Aug 18, 2010 at 2:07 PM, Behdad Esfahbod <behdad@behdad.org> wrote:
> As was pointed out already, you can't do that without breaking stuff.  What I
> can suggest though would be to add syntax like :nth-child(last[-+]an[-+]b) to
> do what :nth-last-child() does right now.  For example: :nth-child(last) or
> :nth-child(last-2n).  That is, "last" is a number that adds to the an+b
> expression.

I don't see any reason to do this, given that nth-last-child() already exists.

~TJ
Received on Thursday, 19 August 2010 03:22:12 GMT

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