Re: [css3-selectors] whitespace inside :nth-child(an+b)?

We consider this a bug in WebKit.

http://bugs.webkit.org/show_bug.cgi?id=17248

dave

On Mar 8, 2008, at 10:45 AM, L. David Baron wrote:

>
> Where inside ":nth-child(3n+1)" is whitespace allowed?  Is
> ":nth-child( 3 n + 1 )" a valid selector?  Is ":nth-child( 3n+1 )"?
> What about ":nth-child(3n + 1)" ?  The same question applies to
> other possible arguments of :nth-child().
>
> I don't see any answers in
> http://www.w3.org/TR/2005/WD-css3-selectors-20051215/#nth-child-pseudo
>
> I wrote a non-exhaustive test at
> http://dbaron.org/css/test/2008/nth-child-whitespace and found that:
> * Konqueror 3.5.9 allows whitespace nowhere
> * Opera 9.5 beta 1 allows whitepace in only three places:
>   + on either side of the + or - in the middle
>   + before the closing ")"
>
> -David
>
> -- 
> L. David Baron                                 http://dbaron.org/
> Mozilla Corporation                       http://www.mozilla.com/
>

Received on Sunday, 9 March 2008 20:30:34 UTC