Files
sousa-gecko/testing/web-platform/tests/css/css-lists/li-value-reversed-015-ref.html
T
Minseong Kim bd8d9489a0 Bug 1998541 [wpt PR 55875] - [css-lists] Account counter-increment, counter-set properties for non-li, a=testonly
Automatic update from web-platform-tests
[css-lists] Account counter-increment, counter-set properties for non-li

This CL fixes the ordered list marker value by including the
counter-increment and counter-set value on non-<li>. To achieve this,
`ListItemOrdinal` is modified to traverse the tree between from the
previous node to the current node.

`NodeAndOrdinalWithIntermediateSum` structure is added to return
`intermediate_sum` when accounting counter values.

The new behavior is behind a runtime flag, CSSListCounterAccounting.

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

--

wpt-commits: e200ee3346ac9769951276a6f6d4cb41337382ae
wpt-pr: 55875
2025-11-10 09:59:50 +00:00

8 lines
119 B
HTML

<!doctype html>
<title>CSS Test Reference</title>
<ol>
<li value=-1>Minus One
<li value=2>Two
<li value=1>One
</ol>