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

Yes, Firefox is correct. The 1st `<li>` instantiates the `list-item` counter, which is propagated to descendants, following siblings, and descendants of following siblings. It's not propagated to following uncles. If you want all the items to share the same instance of the counter, you can use `body { counter-reset: list-item }` (or a `<ol>` wrapper)

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


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

Received on Tuesday, 6 August 2024 11:37:00 UTC