- From: L. David Baron via GitHub <sysbot+gh@w3.org>
- Date: Tue, 18 Jul 2023 03:44:46 +0000
- To: public-css-archive@w3.org
Maybe we should introduce the concept of "narrow" versus "wide" scope to counters, where narrow means element + descendants, and wide means element + later siblings + descendants of all. Counters currently use wide scope, but lists would be better served by narrow scope. (This concept is explicit in the [CSS Toggles proposal](https://tabatkins.github.io/css-toggle/) and probably in other things.) Counters were designed to try to handle both lists and headers (h1...h6)... and the original spec had some errors. When I initially implemented in in Gecko, I proposed fixes for the errors in a way that would make the key use cases work, but in hindsight it would have been better to propose bigger structural changes rather than the minimal thing to turn the then-current spec draft into something that actually rendered its examples as promised. -- GitHub Notification of comment by dbaron Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9076#issuecomment-1639311892 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 18 July 2023 03:44:48 UTC