- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Sun, 01 Oct 2023 01:27:12 +0000
- To: public-css-archive@w3.org
I guess the basic idea would be that [counters](https://drafts.csswg.org/css-lists/#counter) would have a bool to track if they are narrow-scoped. Then, [counter inheritance](https://drafts.csswg.org/css-lists/#inherit-counters) would skip counters from the preceding sibling which are narrow-scoped and whose creator is the preceding sibling. What I'm less sure about is whether we want to preserve this behavior of HTML ordinals in Blink: ```html <div style="list-style: decimal; padding-left: 40px"> <li></li> <li></li> <ol> <li></li> <li></li> <li></li> </ol> <li></li> <li></li> </div> ``` ``` 1. 2. 1. 2. 3. 3. 4. ``` If so, when skipping a counter as described above, would need to iterate the previous siblings until finding one which either doesn't have a counter with that name, or doesn't have the narrow-scoped flag, or the creator is an ancestor. But it may be fine to produce ``` 1. 2. 1. 2. 3. 1. 2. ``` and just require instantiating the counter on the parent for the earlier behavior (like using `<ol>` instead of `<div>`). -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9076#issuecomment-1741915457 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 1 October 2023 01:27:14 UTC