View Full Version : nth-child(-n+4) != nth-child(4)
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.
13 Nov 2014, 12:50 AM
I found this thread googling: extjs component selector nth child
Nigel's answers is the way to go. Here's how to write pseudo classes:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.ComponentQuery (paragraph: Custom pseudo classes)
Unfortunately the nth-child pseudo already exists. So you'd need to extend it.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.