Skip to content

Commit c8961f6

Browse files
committed
[css2] Håkon's edit: text about same counter appearing multiple times in
value of counter-reset or -increment. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402253
1 parent 676a92f commit c8961f6

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

css2/generate.src

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,33 @@ being incremented/reset.
479479
<p>If an element both resets and increments a counter, the counter is
480480
reset 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>
483510
property follows the cascading rules. Thus, due to cascading, the
484511
following style sheet:</p>

0 commit comments

Comments
 (0)