public CssSelector ForNthOfType(NthParity parity) { if (parity == NthParity.Even) { return(AppendSelector($":nth-of-type(even)")); } else { return(AppendSelector($":nth-of-type(odd)")); } }
public CssSelector ForNthLastChild(NthParity parity) { if (parity == NthParity.Even) { return(AppendSelector($":nth-last-child(even)")); } else { return(AppendSelector($":nth-last-child(odd)")); } }