Re: [csswg-drafts] [css-lists-3] Should automatic list-item increment adjust for ol[reversed]? (#4181)

@fantasai I agree there's probably not much of a web-compat problem with arbitrary descendant non-`<li>` elements styled as `display:list-item`. But the issue is that `<li>`s might be wrapped, like so:
```html
<ol reversed>
  <font>
    <li>A</li>
    <li>B</li>
    <li>C</li>
  </font>
</ol>
```
I suspect that's common enough that we need to handle it and your `ol[reversed] > li` rule above wouldn't work for this case.  (Also, that rule would give a non-default computed value for `<ol reversed><li style="display:block">` which seems unfortunate, but probably doesn't matter in practice.)

I still think implementing this as a preshint that maps `<ol reversed>` to ` counter-reset: reversed(list-item)` or some such and making that imply a default counter-increment value of -1 in layout is the best solution.

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

Received on Monday, 21 October 2019 22:50:40 UTC