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

>That should be analogous to option 1:

That's a bit tricky to implement though; when looping forward over a list of nodes you don't really know which one will turn out  to be the last one and you go in and out of nested scopes as you iterate...

Anyway, I'm sure it's implementable.  As I said, I don't feel strongly either way, as long as we don't let `counter-increment`s with a zero value affect the result I'm fine with either option.

So in your algorithm in the last comment we should change "Set incrementNegated to el’s counter-increment..." to "If el’s counter-increment integer value is non-zero, then set incrementNegated to el’s counter-increment..." (so that in step 4 we add in the last increment with a non-zero value). Does that work for you?

Perhaps we're ready to let the CSSWG vote on those two options?

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


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

Received on Wednesday, 20 October 2021 14:48:23 UTC