We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All formats need page one to be set as the title page. This is an issue where a front cover is included.
The text was updated successfully, but these errors were encountered:
If we want the page counter starting with 0 for the very first page (front cover), we can reset the page counter in the stylesheet as follows:
@page :first { counter-reset: page -1; }
and when we support @page :nth(1) (see vivliostyle/vivliostyle.js#667 (comment)), the page counter can be reset at any document in a publication.
@page :nth(1)
Sorry, something went wrong.
Now, Vivliostyle.js v2.5.0 supports the :nth() page selector.
:nth()
See #700 feat(core): Support the :nth() page selector
In multi-document publications, the :nth(1) matches the first page of each document, but the :first matches only the first page of the first document. (see: First-page pseudo-class :first should work on each document in a multi-document publication? (→support :nth()) vivliostyle/vivliostyle.js#667 (comment) )
:nth(1)
:first
You can use @page :nth(1) { counter-reset: page; } to reset the page counter at each or a specific document in a web book.
@page :nth(1) { counter-reset: page; }
Test sample:
or see https://raw.githack.com/vivliostyle/vivliostyle.js/master/packages/core/test/files/index.html#Nth_page_selector
No branches or pull requests
All formats need page one to be set as the title page. This is an issue where a front cover is included.
The text was updated successfully, but these errors were encountered: