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

According to [recent changes around counter inheritance in the spec](https://drafts.csswg.org/css-lists/#changes-20200709):

> Changed counter inheritance to take from the parent first, and only take from the sibling if it’s a new counter.

But [Example 22 in the spec](https://drafts.csswg.org/css-lists/#example-b1a4542d) conflicts with the spec. In the example, the last `h2`'s counter does not inherit from the parent element, so the last `h2` render like this:
```
B.1 First H2 in H1
``` 

A comparable issue: https://github.com/w3c/csswg-drafts/issues/10491

IMO, we need to update the spec to clarify the behavior.

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


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

Received on Thursday, 19 September 2024 14:50:49 UTC