Skip to content
New issue

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

Implement 'pages' counter #367

Merged
merged 2 commits into from
Jul 4, 2017
Merged

Implement 'pages' counter #367

merged 2 commits into from
Jul 4, 2017

Commits on Jul 4, 2017

  1. Implement 'pages' counter

    - Spec: https://drafts.csswg.org/css-page/#page-based-counters
    - Note that the current implementation does not re-layout the pages but merely substitute the text contents generated by the 'pages' counter.
      It means that you need to make sure that dimension and position of a pseudo-element or a region in which 'pages' counter is rendered does not depend on the actual content of the counter.
      Such implementation is chosen in order to:
        - avoid performance degradation ('pages' counter is often used in all pages, so triggering re-layout of the pages make the total processing time twice), and
        - workaround a bug of page floats when re-layout of the pages is triggered.
    kwkbtr committed Jul 4, 2017
    Configuration menu
    Copy the full SHA
    0ce1e0a View commit details
    Browse the repository at this point in the history
  2. Update Change Log

    kwkbtr committed Jul 4, 2017
    Configuration menu
    Copy the full SHA
    7719ba9 View commit details
    Browse the repository at this point in the history