W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Mon, 29 Jul 2019 16:10:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-516056895-1564416648-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC