News for hackers. Stuff that matters.
Re:AM – Attribute Modules for CSS by ratbeard on Friday September 05, 2014 @05:38PM (#8276461)
No, :nth-last-child(n) has the worst performance of any selector.
Re:AM – Attribute Modules for CSS by bGriz on Friday September 05, 2014 @05:54PM (#8276525)
span:nth-last-of-type(2n+1):not(div) > span ?

Edit: I reversed my edits to maintain proper history.

Re:AM – Attribute Modules for CSS by ratbeard on Friday September 05, 2014 @05:59PM (#8276543)
Actually, I spoke to soon. Since selector engines work right to left, this would first narrow down the list of elements to all the spans in the document. Assuming thats a fairly small percentage of the overall tags in the document, this selector runs at .0023 ms on my MBP w/ 8 GB or RAM.

Sa'll good.

Edit: For the record, bGriz edited his comment, making my comment invalid.

Edit (2): Thanks!

Re:AM – Attribute Modules for CSS by bGriz on Friday September 05, 2014 @06:00PM (#8276547)
Definitely fact.
Re:AM – Attribute Modules for CSS by ratbeard on Friday September 05, 2014 @05:55PM (#8276532)
Yea, thats slower for sure.