View Full Version : nth-child(-n+4) != nth-child(4)

Gabor Turi
11 Jun 2010, 7:59 AM
Hi! I would like to select the first four elements, but only the fourth element is selected. Is this a bug? :)

http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#nth-child-pseudo (last example)


14 Jun 2010, 4:49 AM
I can see it doesn't match the W3 standard.

You should post a bug thread (somebody else's problem!).

In the mean time, you can implement your own pseudo class filtering function.