News for hackers. Stuff that matters.
Re:Abusing CSS3's nth-child selector to invent new ones by 91bananas on Friday January 09, 2015 @01:44PM (#8863614)
For this reason I am much more a fan of nth-of-type, and all of the -of-type's, since they actually look at the element type and can say, I should style this one but not anything else that may appear at the same level.
Re:Abusing CSS3's nth-child selector to invent new ones by mmastrac on Friday January 09, 2015 @02:25PM (#8863910)
I'm really looking forward to CSS selectors level 4. That spec will include a new parameter to nth-child: nth-child(3 [of S]), where S can be any further selector.

http://dev.w3.org/csswg/selectors-4/#child-index

Re:Abusing CSS3's nth-child selector to invent new ones by kmz on Saturday January 10, 2015 @12:10AM (#8865984)
Actually just found out about -of-type's, very powerful.