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

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