- From: Peter Goes via GitHub <sysbot+gh@w3.org>
- Date: Sun, 02 Mar 2025 13:31:54 +0000
- To: public-css-archive@w3.org
Quite recently we got an upgrade to the `attr()` function where it now can receive a `type()` function. Could the `counter()` function get a similar upgrade so we could do something like this? ```css counter(counterName type(<number>)) ``` Reading through the comments of this issue, I understand that sometimes you can end up in a loop which is undesirable. As an alternative, could the `calc` function get an upgrade so we could do something like this: ```css animation-delay: calc( counter(item) type(<number>) * 0.5s ); ``` Here the returned value of `counter(item)` is converted to a `<number>` by the `calc` function. Personally, I would prefer the first option. -- GitHub Notification of comment by petergoes Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1026#issuecomment-2692735791 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 2 March 2025 13:31:55 UTC