tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit f4a9e3d6fa11c40440767051b94b0b7ea60b7112
parent 18a49a53bc126e78085cb508b87861d5ffbcdc4e
Author: Minseong Kim <jja08111@gmail.com>
Date:   Mon, 10 Nov 2025 22:20:59 +0000

Bug 1999209 [wpt PR 55958] - [css-lists] Apply new algorithm for initial counter in reversed list, a=testonly

Automatic update from web-platform-tests
[css-lists] Apply new algorithm for initial counter in reversed list

This CL applies the last non-zero increment version algorithm[1] that
accounts an initial counter value.

If we have an explicit start value, we don't apply a counter increment
of the list item. E.g., if the list is reversed, then plus one, else
minus one to the initial counter value. This is same as Firefox's
behaviour.

And this CL renames functions which is related an instantiating counters
to `InitialCounter*` for aligning with the spec.

[1]: https://github.com/w3c/csswg-drafts/issues/6797

Bug: 40682542
Change-Id: I8188288062461ca4c5689e530db3255f9c31ebcb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7126701
Commit-Queue: Minseong Kim <jja08111@gmail.com>
Reviewed-by: Daniil Sakhapov <sakhapov@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1542452}

--

wpt-commits: c43706f1e423e9810d116c9c15e6daacad988711
wpt-pr: 55958

Diffstat:
Dtesting/web-platform/tests/css/css-lists/li-value-reversed-012-ref.html | 7-------
Mtesting/web-platform/tests/css/css-lists/li-value-reversed-012.html | 2+-
Atesting/web-platform/tests/css/css-lists/li-value-reversed-021.html | 13+++++++++++++
Atesting/web-platform/tests/css/css-lists/li-value-reversed-022-ref.html | 9+++++++++
Atesting/web-platform/tests/css/css-lists/li-value-reversed-022.html | 15+++++++++++++++
5 files changed, 38 insertions(+), 8 deletions(-)

diff --git a/testing/web-platform/tests/css/css-lists/li-value-reversed-012-ref.html b/testing/web-platform/tests/css/css-lists/li-value-reversed-012-ref.html @@ -1,7 +0,0 @@ -<!doctype html> -<title>CSS Test Reference</title> -<ol> - <li value=3>Three - <li value=2>Two - <li value=1>One -</ol> diff --git a/testing/web-platform/tests/css/css-lists/li-value-reversed-012.html b/testing/web-platform/tests/css/css-lists/li-value-reversed-012.html @@ -5,7 +5,7 @@ <link rel="help" href="https://drafts.csswg.org/css-lists-3/#auto-numbering"> <link rel="help" href="https://drafts.csswg.org/css-lists-3/#instantiating-counters"> <link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com"> -<link rel="match" href="li-value-reversed-012-ref.html"> +<link rel="match" href="li-value-reversed-011-ref.html"> <ol reversed> <li style="counter-increment: list-item -2">Three <li>Two diff --git a/testing/web-platform/tests/css/css-lists/li-value-reversed-021.html b/testing/web-platform/tests/css/css-lists/li-value-reversed-021.html @@ -0,0 +1,13 @@ +<!doctype html> +<title>Interaction of ol reversed and list-item value</title> +<link rel="help" href="https://html.spec.whatwg.org/#attr-ol-reversed"> +<link rel="help" href="https://html.spec.whatwg.org/#ordinal-value"> +<link rel="help" href="https://drafts.csswg.org/css-lists-3/#auto-numbering"> +<link rel="help" href="https://drafts.csswg.org/css-lists-3/#instantiating-counters"> +<link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com"> +<link rel="match" href="li-value-reversed-011-ref.html"> +<ol reversed start=5> + <li style="counter-increment: list-item -3">Three + <li>Two + <li>One +</ol> diff --git a/testing/web-platform/tests/css/css-lists/li-value-reversed-022-ref.html b/testing/web-platform/tests/css/css-lists/li-value-reversed-022-ref.html @@ -0,0 +1,9 @@ +<!doctype html> +<title>CSS Test Reference</title> +<ol> + <li value=6>Six + <li value=5>Five + <li value=4>Four + <li value=2>Two + <li value=1>One +</ol> diff --git a/testing/web-platform/tests/css/css-lists/li-value-reversed-022.html b/testing/web-platform/tests/css/css-lists/li-value-reversed-022.html @@ -0,0 +1,15 @@ +<!doctype html> +<title>Interaction of ol reversed and list-item value</title> +<link rel="help" href="https://html.spec.whatwg.org/#attr-ol-reversed"> +<link rel="help" href="https://html.spec.whatwg.org/#ordinal-value"> +<link rel="help" href="https://drafts.csswg.org/css-lists-3/#auto-numbering"> +<link rel="help" href="https://drafts.csswg.org/css-lists-3/#instantiating-counters"> +<link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com"> +<link rel="match" href="li-value-reversed-022-ref.html"> +<ol reversed> + <li>Six + <li style="counter-set: list-item 5">Five + <li>Four + <li style="counter-set: list-item 2">Two + <li>One +</ol>