postcss / postcss-selector-matches

PostCSS plugin to transform :matches() W3C CSS pseudo class to more compatible CSS (simpler selectors)
MIT License
44 stars 10 forks source link

Not support :nth-child() selector #2

Closed yisibl closed 9 years ago

yisibl commented 9 years ago

Input:

.foo:matches(:nth-child(-n+2), .bar) {
  color: red;
}

Output:

.foo:nth-child(-n+2, .bar) {
  color: red;
}

The right output is:

.foo:nth-child(-n+2), .foo.bar {
  color: red;
}