-
Notifications
You must be signed in to change notification settings - Fork 715
[css-lists] <reversed-counter-name> <integer>
seems useless
#6231
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
I'm confused - how could that possibly work? - the computed value will be the same as a non-reversed counter since the "with reversed flag" isn't encoded in the computed value. E.g. Your second suggestion is interesting, but I doubt it's web-compatible. I suspect there's a lot of existing content that use I tend to think we should keep the syntax as is. You're right that the That said, in theory we could make a default increment value for non- container { counter-reset: reversed(c) 7; }
item { counter-increment: c; } given that we don't have any backwards compat to worry about here. That complicates the spec a bit though - which currently says the value defaults to |
Yes, it would need magic to set the reversed flag. But now we already have some magic in order to produce either
I think it's probably web compatible. Chromium completely ignored
Not a bad idea. But then maybe |
Though I guess some pages might be using |
Filed #6800 for this. |
Uh oh!
There was an error while loading. Please reload this page.
#6096 added the
reversed()
syntax to thecounter-reset
property.However, unless I'm missing something, these are totally equivalent:
The only difference is that the latter instantiates the counter with a reversed flag, but this flag only seems relevant in these cases:
7
in the example)list-item
counter (it'sc
in the example)So IMO we have two reasonable possibilities:
Drop the useless
<reversed-counter-name> <integer>
syntax, and just keep<reversed-counter-name>
.The reversed flag of the counter would then be set by
<reversed-counter-name>
and also whencounter-reset
instantiates alist-item
counter in an<ol reversed>
. The preshint for reversed HTML lists would be:Keep
<reversed-counter-name> <integer>
, but then negate increments not just tolist-item
but to all counters. That is,list-item
counters would getcounter-increment: list-item 1
by default, not -1 for reversed lists. And when incrementing a reversed counter, the specified amount would actually be decremented. Sowould look like
The latter seems more useful for authors, and makes
list-item
less magic.The text was updated successfully, but these errors were encountered: