The `target-counter()` function does exactly this in CSS, not JS. But it's currently not implemented in any browsers. https://www.w3.org/TR/css-gcpm-3/#target-counter -- GitHub Notification of comment by faceless2 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5879#issuecomment-762768367 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-configReceived on Tuesday, 19 January 2021 11:00:59 UTC
This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:25 UTC