-
Notifications
You must be signed in to change notification settings - Fork 719
[css-lists-3] counter-set vs counter-increment #3810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It also gives better cascading behavior in general (not just for the author/ua list-item negotiation). |
Does If there's no compatibility objections, I agree that it is preferable if The downside is that |
There's Gecko's implementation, but that's not on release yet so we can change that without much hassle I'd guess. But I'd rather get a speedy resolution than doing it once it's hit release. cc @MatsPalmgren in case he has objections. |
I like this proposal. It makes (I'm fixing Gecko here.) |
The CSS Working Group just discussed
The full IRC log of that discussion |
…he increment, so they don't compound). #3810
Uh oh!
There was an error while loading. Please reload this page.
Re: Counter properties in CSS Lists Editor's Draft
There's some ergonomc awkwardness about
counter-set
vscounter-increment
, e.g. in #3686 it's pointed out that you'd have to zero out the list-item increment when setting the counter for. (This particular case is technically problematic as well as unweildy because it'd get wiped out by an author
counter-increment
declaration; but there's some awkwardness either way and it doesn't cascade well for anyone.)I'm wondering if instead of applying
counter-reset
, thencounter-set
, thencounter-increment
, we should applycounter-reset
, thencounter-increment
, thencounter-set
? Then when you “set” a counter on an element, you actually get that value back, which seems a little more intuitive (and also solves the list-item problem).The text was updated successfully, but these errors were encountered: