- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Wed, 27 Oct 2021 16:14:43 +0000
- To: public-css-archive@w3.org
My concern with skipping 0 is something like this: ```html <ol reversed><!-- 0 --> <li style="counter-increment: list-item 0"><!-- 0 --></li> <li style="counter-increment: list-item 0"><!-- 0 --></li> <li style="counter-increment: list-item 0"><!-- 0 --></li> <li style="counter-increment: list-item 0"><!-- 0 --></li> </ol> ``` With the current spec, changing the increment of an item in the middle will only alter preceding items: ```html <ol reversed><!-- 1 --> <li style="counter-increment: list-item 0"><!-- 1 --></li> <li style="counter-increment: list-item 0"><!-- 1 --></li> <li style="counter-increment: list-item -1"><!-- 0 --></li> <li style="counter-increment: list-item 0"><!-- 0 --></li> </ol> ``` By skipping zero, all items will be affected: ```html <ol reversed><!-- 2 --> <li style="counter-increment: list-item 0"><!-- 2 --></li> <li style="counter-increment: list-item 0"><!-- 2 --></li> <li style="counter-increment: list-item -1"><!-- 1 --></li> <li style="counter-increment: list-item 0"><!-- 1 --></li> </ol> ``` This seems inconsistent with what would happen when modifying a `counter-increment` in a list with non-zero increments. And would require updating all the items, possibly defeating some optimization. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6738#issuecomment-953084518 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 27 October 2021 16:14:45 UTC