- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Wed, 19 Jul 2023 18:31:56 +0000
- To: public-css-archive@w3.org
tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-lists] Design a 'counter' shorthand ==
In <https://github.com/w3c/csswg-drafts/issues/8997> we resolved to add a 'counter' shorthand to let you set the counter-* styles together, since the grammar of counter-* properties makes them impossible to extend.
Here's my proposed syntax:
```
counter: <single-counter>#;
<single-counter> = <custom-ident> <integer>{0,2} <counter-style-name>?
```
The integers set the reset and the increment, in that order. If omitted they default to 0 and 1, same as the defaults in the longhands.
Questions:
* do we want to bake `counter-set` into this at all? It, fundamentally, has nothing to do with creating a counter, it's *only* useful on a different element from what's creating the counter. I have a slightly different grammar proposal if we want to make that possible. I propose, tho, that we don't do so, and have this shorthand only reset -reset, -increment, and -style.
Explicitly pinging @nt1m since they pushed the resolution.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9095 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 19 July 2023 18:31:58 UTC