Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pagedjs
pagedjs
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 144
    • Issues 144
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Tools
  • pagedjspagedjs
  • Issues
  • #220

Closed
Open
Opened Jun 22, 2020 by Guillaume@mogztter
  • Report abuse
  • New issue
Report abuse New issue

counter-reset is applied on repeated elements

Consider the following page: test.html

In this example, we have the following structure:

<body>
  <header>
    <!-- ... -->
  </header>
  <main>
    <!-- ... -->
  </main>
</body>

We want to reset the page counter to 1 on the content matter (i.e. the main element) using:

main {
  counter-reset: page 1;
  break-before: right;
}

For reference, Paged.js will duplicate the <main> element on every section pages but the issue is that data-counter-page-reset="1" is present and therefore the page counter is reset on each section.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: tools/pagedjs#220