- From: zp1996 via GitHub <sysbot+gh@w3.org>
- Date: Fri, 20 Sep 2024 07:56:07 +0000
- To: public-css-archive@w3.org
As we have reverted the spec, so [the test](https://wpt.fyi/results/css/css-lists/counter-001.html?label=master) results of Firefox and Safari are correct?
```html
<style type="text/css">
#test { counter-reset: c; }
#test span { counter-increment: c; }
#test span::before { content: counter(c, decimal-leading-zero); }
</style>
<p>The following two lines should look the same:</p>
<div id="test">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span style="counter-reset: c 98"></span>
<span></span>
<span></span>
</div>
```
Chrome inherits from the parent element:
```
01 02 03 04 05 06 07 08 09 10 11 12 99 13 14
```
Firefox and Safari inherit from the sibling element:
```
01 02 03 04 05 06 07 08 09 10 11 12 99 100 101
```
--
GitHub Notification of comment by zp1996
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5477#issuecomment-2363073065 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 20 September 2024 07:56:08 UTC