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

@MatsPalmgren Can you clarify why Firefox still renders

```html
<style>
  list, item { display: block; }
  list { counter-set: foo; margin-left: 40px; }
  list list { counter-reset: foo; }
  item { counter-increment: foo; }
  item::before { content: counters(foo,'.'); }
</style>
<list>
  <item></item>
  <item></item>
  <list>
    <item></item>
  </list>
  <item></item>
</list>
```
like this
![image](https://user-images.githubusercontent.com/4010828/91371773-3f766300-e812-11ea-98ea-016904e619b8.png)

The top-level `<list>` instantiates the `foo` counter, so why does the last `<item>` fall back to inheriting from the previous sibling? Is this a bug or intentional?

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5477#issuecomment-742172202 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 10 December 2020 01:26:25 UTC