Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions css-lists-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,25 +1148,26 @@ Instantiating Counters</h4>

1. Let |num| be 0.

2. Let |first| be true.
2. Let |lastNonZeroIncrementNegated| be 0.

3. For each element or pseudo-element |el| that increments or
sets the same counter in the same [=scope=]:

1. Let |incrementNegated| be |el|'s 'counter-increment' integer value for this counter,
multiplied by -1.

2. If |first| is true,
then add |incrementNegated| to |num| and
set |first| to false.
2. If |incrementNegated| is not zero,
then set |lastNonZeroIncrementNegated| to |incrementNegated|.

3. If |el| sets this counter with 'counter-set',
then add that integer value to |num| and
break this loop.

4. Add |incrementNegated| to |num|.

4. Return |num|.
4. Add |lastNonZeroIncrementNegated| to |num|.

5. Return |num|.

Note: Only [=reversed=] counters can be instantiated without an initial value.

Expand Down