W3C home > Mailing lists > Public > www-style@w3.org > October 2009

Re: [css3-selectors] when both a and b are 0 in nth

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 20 Oct 2009 11:20:05 -0400
To: CSS WG <www-style@w3.org>
Message-ID: <20091020152005.GB26148@pickering.dbaron.org>
On Tuesday 2009-10-20 17:01 +0200, Anne van Kesteren wrote:
> Would it make sense to make nth pseudo-classes be ignored when both a and 
> b are 0? It is a reasonably easy case to catch and is very likely an  
> authoring error of some kind.
> While working on figuring out what the serialization should be for  
> Selectors I found out that Opera already does this. Firefox and WebKit  
> currently do not.

There are a lot of selectors that can't match; why pick these in
particular?  Dropping them requires additional code, and I don't
think it's necessary.


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Tuesday, 20 October 2009 15:20:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:39 UTC