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

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-lists-3] list-item counter nesting is confusing ==
See @ZoeBijl’s thread at https://w3c.social/@moiety@front-end.social/110729923581670564

The testcase uses the following code:

```
<ol>
    <li>Some</li>
    <li>List</li>
    <li>Items
        <ol>
        <li>Nested</li>
        </ol>
    </li>
</ol>

<section>
    <ol>
        <li>Some</li>
        <li>List</li>
        <li>Items
            <ol>
                <li>Nested</li>
            </ol>
        </li>
    </ol>
</section>

<ol>
    <li>Some</li>
    <li>List
        <ol>
            <li>Nested</li>
        </ol>
    </li>
    <li>Items
    </li>
</ol>
```

and using the `counters()` function results in what looks like nonsense (that is apparently nonetheless per spec). I'm not sure how to fix it, but we should probably fix it... it might require some new feature that adjusts counter scoping.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9076 using your GitHub account


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

Received on Monday, 17 July 2023 23:41:23 UTC