Re: [csswg-drafts] [css-lists] automatic start value of reversed list is affected by 'counter-increment: <counter> 0' nodes (#6738)

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