W3C home > Mailing lists > Public > www-style@w3.org > March 2008

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

From: David Hyatt <hyatt@apple.com>
Date: Sun, 09 Mar 2008 15:30:15 -0500
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
Message-id: <22FE11B8-9699-48CF-9DE7-1F047A24CA38@apple.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT