Skip to content
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

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

Merged
merged 2 commits into from
Apr 20, 2021

Conversation

zcorpan
Copy link
Member

@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
css-lists-3/Overview.bs Outdated Show resolved Hide resolved
@zcorpan
Copy link
Member 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants