counter-reset CSS property doesn't work properly with Bindery
See original GitHub issueI’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:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Example: https://evanbrooks.info/bindery/examples/10_counters/ Docs: https://evanbrooks.info/bindery/docs/#counter
Ah, I see. A counter function like that looks like it would work, though!