KEMBAR78
[css-lists] Define reversed counters with automatic initial value by zcorpan · Pull Request #6096 · w3c/csswg-drafts · GitHub
Skip to content

Conversation

zcorpan
Copy link
Contributor

@zcorpan zcorpan commented Mar 11, 2021

This allows HTML to define the rendering for <ol reversed> in terms
of a presentational hint for counter-reset: reversed(list-item)
or <ol reversed start=X> to counter-reset: reversed(list-item) X+1.
See whatwg/html#4816

Fixes #4181
Fixes #4211

This allows HTML to define the rendering for `<ol reversed>` in terms
of a presentational hint for `counter-reset: reversed(list-item)`
or `<ol reversed start=X>` to `counter-reset: reversed(list-item) X+1`.
See whatwg/html#4816

Fixes w3c#4181
Fixes w3c#4211
@zcorpan
Copy link
Contributor Author

zcorpan commented Apr 13, 2021

Tests: web-platform-tests/wpt#28453

@zcorpan zcorpan requested a review from tabatkins April 13, 2021 14:36
@tabatkins tabatkins merged commit dfac6c5 into w3c:main Apr 20, 2021
annevk pushed a commit to whatwg/html that referenced this pull request Apr 28, 2021
Map `<ol start reversed>` and `<li value>` to `counter-reset` and `counter-set` properties as presentational hints. For reversed lists, use the CSS `reversed()` function added in w3c/csswg-drafts#6096.

Tests: web-platform-tests/wpt#28040 & web-platform-tests/wpt#28453.

Helps with #4808.

Co-authored-by: Simon Pieters <zcorpan@gmail.com>
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Jun 16, 2021
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Jun 17, 2021
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 27, 2021
…(), a=testonly

Automatic update from web-platform-tests
[css-lists] Test counter-reset: reversed()

See
w3c/csswg-drafts#6096
w3c/csswg-drafts#6297
--

wpt-commits: 35300f2e3eb30bf59558397b4bf533e40ead14c1
wpt-pr: 28453
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Jul 16, 2021
…(), a=testonly

Automatic update from web-platform-tests
[css-lists] Test counter-reset: reversed()

See
w3c/csswg-drafts#6096
w3c/csswg-drafts#6297
--

wpt-commits: 35300f2e3eb30bf59558397b4bf533e40ead14c1
wpt-pr: 28453
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…(), a=testonly

Automatic update from web-platform-tests
[css-lists] Test counter-reset: reversed()

See
w3c/csswg-drafts#6096
w3c/csswg-drafts#6297
--

wpt-commits: 35300f2e3eb30bf59558397b4bf533e40ead14c1
wpt-pr: 28453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[css-lists-3] Setting the start value of a reversed list [css-lists-3] Should automatic list-item increment adjust for ol[reversed]?

2 participants