File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -479,6 +479,33 @@ being incremented/reset.
479479<p>If an element both resets and increments a counter, the counter is
480480reset first and then incremented.
481481
482+ <p>If the same counter is specified more than once in the value of the
483+ <span class="propinst-counter-reset">'counter-reset'</span> and <span
484+ class="propinst-counter-increment">'counter-increment'</span>
485+ properties, all counters are processed in the order specified.
486+
487+ <p>If the same counter is specified more than once in the value of the
488+ <span class="propinst-counter-reset">'counter-reset'</span> and <span
489+ class="propinst-counter-increment">'counter-increment'</span>
490+ properties, the counter will be processed accordingly.
491+
492+ <div class="example">
493+ <p>The following example will reset the 'section' counter to 0:
494+
495+ <pre>
496+ H1 { counter-reset: section 2 section }
497+ </pre>
498+
499+ <p>The following example will increment the 'chapter' counter with 3:
500+
501+ <pre>
502+ H1 { counter-increment: chapter chapter 2 }
503+ </pre>
504+ </div>
505+
506+
507+
508+
482509<P>The <span class="propinst-counter-reset">'counter-reset'</span>
483510property follows the cascading rules. Thus, due to cascading, the
484511following style sheet:</p>
You can’t perform that action at this time.
0 commit comments