- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Tue, 17 Aug 2010 15:44:51 -0700
- To: Christoph Päper <christoph.paeper@crissov.de>
- CC: "www-style@w3.org list" <www-style@w3.org>
On 08/17/2010 02:31 AM, Christoph Päper wrote: > Currently :nth-child(an+b) etc. only match anything if the argument, an+b, evaluates to a positive value. > > | The :nth-child(an+b) pseudo-class notation represents > | an element that has an+b-1 siblings before it in the document tree, > | for any positive integer or zero value of n, and has a parent element. > > ... would it break any other use case to define :nth-child(-1) as matching > the last child (and other negative values accordingly)? I agree this would be cool, and I was in favor of :nth-child working that way when we first discussed the possibility many years ago, but I think at this point it's too late to make that change. ~fantasai
Received on Tuesday, 17 August 2010 22:45:28 UTC