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.

Received on Thursday, 19 August 2010 03:22:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:49 UTC