Re: [csswg-drafts] Alternative syntax for <An+B> in selectors (#4140)

For other values we could also consider something like `An+B, n <= C`.

`:nth-child(An+B <= C)` seems less useful and can just be `:nth-child(An+B):nth-child(n <= C)`.

But `:nth-child(An+B, n <= C)` would be like `:nth-child(An+B):nth-child(n <= A*C+B)` or `:nth-child(An+B):nth-child(n >= A*C+B)` depending on the sign of `A`. The former would free authors from doing the math.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4140#issuecomment-516056895 using your GitHub account

Received on Monday, 29 July 2019 16:10:50 UTC