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
14 lines
614 B
HTML
14 lines
614 B
HTML
<!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-013-ref.html">
|
|
<ol reversed>
|
|
<li>Five
|
|
<li value="3" style="counter-increment: list-item -2">Three
|
|
<li>Two
|
|
</ol>
|