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

Re: [csswg-drafts] [css-lists] Does counter() create a new counter if none exists?

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Thu, 22 Feb 2018 22:43:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-367848205-1519339391-sysbot+gh@w3.org>
Oh, it seems Firefox and Chrome follow [CSS 2.2](https://www.w3.org/TR/CSS22/generate.html#x29):

> If `counter-increment` or `content` on an element or pseudo-element refers to a counter that is not in the scope of any `counter-reset`, implementations should behave as though a `counter-reset` had reset the counter to 0 on that element or pseudo-element.

GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2348#issuecomment-367848205 using your GitHub account
Received on Thursday, 22 February 2018 22:43:13 UTC

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