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

Re: [csswg-drafts] Make it easier to express ranges for <An+B> selectors (#4140)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Wed, 31 Jul 2019 23:02:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-517053839-1564614139-sysbot+gh@w3.org>
But as you said, one of the non-trivial aspects of `An+B` is that `n` takes non-negative values, and somebody may want to change this range, e.g. start at 1 instead of 0. You cannot do this with `1 <= An+B`, but you could with `An+B, 1 <= n`.

> `n <= C` actually means `n <= A*C+B`

No, `n <= C` means `n <= C`. But you are not selecting the `n`-th element, you are selecting the `An+B` one.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4140#issuecomment-517053839 using your GitHub account
Received on Wednesday, 31 July 2019 23:02:22 UTC

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