Re: [csswg-drafts] [css-lists] CSS counter scope/inheritance is incompatible with HTML ordinals (#5477)

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