[csswg-drafts] [css-lists-4][css-content-3] Add counter-style property to associate default counter style (#8997)

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

== [css-lists-4][css-content-3] Add counter-style property to associate default counter style ==
Currently counters are associated with a name, but they're not associated with a counter style. You have to provide that style manually every time you use the `counters()` function. This is kindof okay for most uses of counters, but it's a bit of a problem for `target-counter()` because then you have to track which counters use which styles, and it gets extra complicated if you want to do multi-level lists (which all have the same counter name).

I think it would be good to introduce a `counter-style` property that tracks with `counter-reset`, and associates the named counter with its default style. Authors can still override it, but then at least it can default to the same representation everywhere it occurs.

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


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

Received on Wednesday, 21 June 2023 17:06:24 UTC