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

Re: [csswg-drafts] [css-lists-3] Need a way to return the max value of a counter within a scope. (#3667)

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Thu, 18 Apr 2019 07:25:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-484387359-1555572341-sysbot+gh@w3.org>
`counter-final()` may be another option, while `counter-last()` or `last-counter()` feels wrong.

Such terms immediately raise the question, of course, whether there are also valid use cases for the opposite end, but I canʼt think of any useful applications for `counter-min()`, `counter-initial()` or `counter-first()`. This is probably a point in favor of `counter-length()`, perhaps `counter-size()` or `counter-range()`.

CSS counters are a special beast, otherwise `max(counter(foo))` would be an intuitive option. 

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3667#issuecomment-484387359 using your GitHub account
Received on Thursday, 18 April 2019 07:25:44 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:07 UTC