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 153
    • Issues 153
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • 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
  • #115

Closed
Open
Opened May 06, 2019 by Erica@erica
  • Report abuse
  • New issue
Report abuse New issue

Can't override counter-increment

I'm using a counter for my titles but would like to skip some of them. I can override the adding of the number but not the incrementation of the counter :

h1 {
    break-before: page;
    counter-reset: h2;
    counter-increment: h1;
}

h1.not-numbered {
    counter-increment: none; /* the following title will still be 2 instead of just 1*/
    break-before: none;   /* override the break-before: page*/
}
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
counters
Assign labels
  • View project labels
Reference: tools/pagedjs#115