Re: CSS Selectors test 146a/b

On Saturday 02 July 2005 16:58, Ian Hickson wrote:
> On Wed, 29 Jun 2005, Allan Sandfeld Jensen wrote:
> > I was debugging these tests to figure out why they failed in Konqueror
> > when I discovered they used :nth-child(3n-1). According to CSS Selectors
> > the b value cannot be negative, so it should be corrected to
> >
> > :nth-child(3n+2).
>
> Why can't b be negative?

Because the syntax is "an+b" with comments on special cases of a=0, b=0 and 
negative a, but no mention of a special case of negative b. So if b was 
negative and the syntax was maintained it would be "an+-b". 

Besides the negative values of b are redundant, so I expect the exclusion of 
them to be deliberate.

` Allan

Received on Sunday, 3 July 2005 21:38:15 UTC