W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Thu, 28 Feb 2019 01:12:59 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-415400925-1551316379-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:44 UTC