Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-lists/li-value-reversed-008b.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title></title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="match" href="li-value-reversed-008-ref.html">
<meta name="assert" content="The last (non-zero) counter-increment value before the first counter-set determines the start value.">
<style>
:root {
color:black; background-color:white; font:10px/1 monospace;
}
ol::before, li::before {
content: counters(list-item,".");
}
div, span {
counter-increment: list-item 0;
}
</style>
<ol reversed>
<li style="counter-increment: list-item -2"></li>
<div style="counter-increment: list-item -1"></div>
<li style="counter-increment: list-item -1"></li>
<li style="counter-increment: list-item 0; counter-set: list-item 5"></li>
<li style="counter-increment: list-item -2"></li>
</ol>
<ol reversed>
<div></div>
<div style="counter-increment: list-item -1"></div>
<div></div>
<li style="counter-increment: list-item -2"><span></span></li>
<div></div>
<li style="counter-increment: list-item 0; counter-set: list-item 5"><span></span></li>
<li style="counter-increment: list-item -1"><span></span></li>
<li style="counter-increment: list-item -8"><span></span></li>
<div style="counter-increment: list-item 11; counter-set: list-item 99"></div>
</ol>
<ol reversed>
<div></div>
<li style="counter-increment: list-item 2; counter-set: list-item 5"></li>
<div></div>
<li style="counter-increment: list-item 2"></li>
<div></div>
<li style="counter-increment: list-item 2"></li>
<div></div>
</ol>
<ol reversed>
<li style="counter-increment: list-item 3"></li>
<li style="counter-increment: list-item 1"></li>
<div></div>
<div style="counter-increment: list-item 4"></div>
<div></div>
<div></div>
<li style="counter-increment: list-item 0; counter-set: list-item 5"><span></span></li>
<div style="counter-increment: list-item 11; counter-set: list-item 99"></div>
</ol>