Re: [csswg-drafts] [css-lists-3] list-item counter nesting is confusing (#9076)

Just noting that this isn't only for `counters()`, basic HTML lists also have oddities as currently defined (since  #5477 was not a comprehensive solution):

<details>

```html
<ol>
    <li>Some</li>
    <li>List</li>
    <li>Items
        <ol>
            <li>Nested</li>
        </ol>
    </li>
</ol>
<section style="list-style-type: decimal">
    <li>Some</li>
    <li>List</li>
    <li>Items
        <ol>
            <li>Nested</li>
        </ol>
    </li>
</section>
<ol>
    <li>Some</li>
    <li>List
        <ol>
            <li>Nested</li>
        </ol>
    </li>
    <li>Items</li>
</ol>
```

Blink and WebKit don't use actual counters, so they show the more reasonable

```
1. Some
2. List
3. Items
    1. Nested

1 Some
2 List
3 Items
    1. Nested

1. Some
2. List
    1. Nested
3. Items
```

But in Firefox, or when manually switching to an actual counter,


```
1. Some
2. List
3. Items
    1. Nested

4 Some
5 List
6 Items
    1. Nested

1. Some
2. List
    1. Nested
3. Items
```

</details>

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


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

Received on Thursday, 28 September 2023 22:43:52 UTC