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

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

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 8 Mar 2008 08:45:43 -0800
To: www-style@w3.org
Message-ID: <20080308164543.GB724@ridley.dbaron.org>

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 Saturday, 8 March 2008 16:45:53 GMT

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