Skip to content

Commit

Permalink
css-lists: Elements with 'display:list-item' should respect
Browse files Browse the repository at this point in the history
'counter-increment' and 'counter-set' properties

ListItemOrdinal::CalcValue() should refer to these properties.

Bug: 1157365
Change-Id: I30bb015935b4cd076a5054dddee062d73145c089
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2583595
Reviewed-by: Oriol Brufau <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Commit-Queue: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/master@{#835809}
  • Loading branch information
tkent-google authored and chromium-wpt-export-bot committed Dec 10, 2020
1 parent 7ac57af commit a8329d3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
20 changes: 20 additions & 0 deletions html/rendering/the-details-element/summary-in-ol-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>

<ol>
<details><summary>summary</summary></details>
<li value="1">1</li>
<li value="2">2 <details><summary>summary</summary></details></li>
<li value="3">3</li>
<details><summary>summary</summary></details>
<li value="4">4</li>
</ol>

<ol>
<summary>summary</summary>
<li value="1">1</li>
<li value="2">2 <summary>summary</summary></li>
<li value="3">3</li>
<summary>summary</summary>
<li value="4">4</li>
</ol>

22 changes: 22 additions & 0 deletions html/rendering/the-details-element/summary-in-ol.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<title>Check if SUMMARY has 'counter-increment: list-item 0'</title>
<link rel="match" href="summary-in-ol-ref.html">

<ol>
<details><summary>summary</summary></details>
<li>1</li>
<li>2 <details><summary>summary</summary></details></li>
<li>3</li>
<details><summary>summary</summary></details>
<li>4</li>
</ol>

<ol>
<summary>summary</summary>
<li>1</li>
<li>2 <summary>summary</summary></li>
<li>3</li>
<summary>summary</summary>
<li>4</li>
</ol>

0 comments on commit a8329d3

Please sign in to comment.