Closed benschwarz closed 11 years ago
After accepting #52, I thought that perhaps we should support other types of pseudo selectors.
This patch adds all other common pseudo selectors (with the exception of nth-* selectors).
nth-*
I decided to PR this just to see if anyone else had a clever (read: clean) way to implement the nth-child, nth-of-type, and nth-last-child selectors.
nth-child
nth-of-type
nth-last-child
ping @kneath
I'm down to try this out — I wonder about performance impact here, but I don't think it should be too big of a deal unless someone's styleguide has a ton of HTML.
After accepting #52, I thought that perhaps we should support other types of pseudo selectors.
This patch adds all other common pseudo selectors (with the exception of
nth-*
selectors).I decided to PR this just to see if anyone else had a clever (read: clean) way to implement the
nth-child
,nth-of-type
, andnth-last-child
selectors.ping @kneath