Re: [csswg-drafts] [css-lists-3] Setting the start value of a reversed list (#4211)

I came here because I tried to work on https://github.com/whatwg/html/pull/4816 but figured it'd be ideal if CSS could be used for reverse lists as well, which means this issue and #4181 need to be fixed.

@MatsPalmgren 

> I still think the best solution is to resolve this issue together with issue #4181 as a preshint mapping to `counter-reset: reversed(list-item)` or some such.  That declaration would have two effects: 1) the default start value is resolved in layout (to N+1 per above), and 2) the default `list-item` counter-increment for list items is -1 rather than 1.  I think this makes it possible to support reversed content-based lists also for author-defined counters for free (if we want to allow that), by allowing the author to specify `counter-reset: reversed(foo)` with `counter-increment: foo -1` on the items.

I like this suggestion the most, I think. It adds a useful capability to CSS and makes it possible for HTML to use only preshints to CSS properties for rendering list items.

cc @chrishtr @vmpstr @emilio - thoughts?

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


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

Received on Wednesday, 3 March 2021 15:02:57 UTC