Cocoanetics/DTCoreText — pull request #569 by amro (2013-08-30 02:53:41+00:00)
Title: This PR adds selector weights to sort selectors by specificity

Thanks for the article and tip re:containsObject. I read up on specificity and here's what I've come up with. There's a test for this and a test for the tie breaking case as well.

This markup, for example, would trip up the unweighted code and the wrong font size would be used.

Text