Skip to content

[css-lists] Define reversed counters with automatic initial value#6096

Merged
tabatkins merged 2 commits into
w3c:mainfrom
bocoup:reversed-counters
Apr 20, 2021
Merged

[css-lists] Define reversed counters with automatic initial value#6096
tabatkins merged 2 commits into
w3c:mainfrom
bocoup:reversed-counters

Conversation

@zcorpan
Copy link
Copy Markdown
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
Comment thread css-lists-3/Overview.bs Outdated
@zcorpan
Copy link
Copy Markdown
Contributor Author

zcorpan commented Apr 13, 2021

@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

2 participants