question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

counter-reset CSS property doesn't work properly with Bindery

See original GitHub issue

I’m trying to number figures [1,2,3,…] that resets each chapter, but can’t use counter-reset properly with Bindery because each page is its own context.

Counter-increment in CSS 2.1 requires that its counter be within the scope of the counter-reset, otherwise “implementations should behave as though a ‘counter-reset’ had reset the counter to 0”

Do you have any ideas on how to accomplish this with Bindery?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

0reactions
teddybradfordcommented, Aug 24, 2017

Ah, I see. A counter function like that looks like it would work, though!

Read more comments on GitHub >

github_iconTop Results From Across the Web

counter-reset - CSS: Cascading Style Sheets - MDN Web Docs
This property will create a new counter or reversed counter with the given name on the specified element. Normal counters have a default ......
Read more >
CSS Counters not updating in Chrome - Stack Overflow
try reset the subsection counter in the section tag and increase the counter in the section:before. This works for me in the Chrome....
Read more >
counter-reset | CSS-Tricks
The counter-reset property allows for automatic numbering of elements. Like an ordered list ( ) element.
Read more >
JavaScript - Bootstrap
js is a basic helper for transitionEnd events as well as a CSS transition emulator. It's used by the other plugins to check...
Read more >
CSS counter-reset property - W3Schools
The counter-reset property creates or resets one or more CSS counters. The counter-reset property is usually used together with the counter-increment ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found