- From: Shinyu Murakami via GitHub <noreply@w3.org>
- Date: Thu, 18 Sep 2025 07:54:33 +0000
- To: public-css-archive@w3.org
MurakamiShinyu has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-page] Should we allow resetting the `pages` counter? == The spec https://drafts.csswg.org/css-page/#page-based-counters says: > … The value of `pages` cannot be manipulated: while [`counter-reset`](https://drafts.csswg.org/css2/#propdef-counter-reset) and [`counter-increment`](https://drafts.csswg.org/css2/#propdef-counter-increment) statements that set it are valid, they have no effect. However there are situations where resetting the `pages` counter may be useful, for example, when using `content: 'Page: ' counter(page) ' of ' counter(pages);` style page footer, and the first page is a cover page that should not be counted, you may want to reset both `page` and `pages` counters with `counter-reset: page -1 pages -1` at the first page. See the issue raised in Vivliostyle: - https://github.com/vivliostyle/vivliostyle.js/issues/1560 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12824 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 18 September 2025 07:54:34 UTC