[csswg-drafts] [css-lists] Make it clear what repeating a counter name in counter-increment/set/reset does (#3687)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-lists] Make it clear what repeating a counter name in counter-increment/set/reset does ==
The spec is very unclear about what happens when you use the same counter name multiple times in the counter-* properties. In implementations, `counter-increment: foo 1 foo 1;` is equivalent to `counter-increment: foo 2;`. Similarly, `counter-reset: foo 0 foo 2` is equivalent to `counter-reset: foo 2`.

So the clear answer is that we iterate the list of counter/value pairs, handling each in turn. Repeating a name is valid.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3687 using your GitHub account

Received on Thursday, 28 February 2019 01:13:01 UTC