Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<title></title>
<link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
<link rel="match" href="li-value-reversed-009-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;
}
.pure-set {
counter-increment: list-item 0;
counter-set: list-item 5;
}
</style>
<ol reversed>
<li style="counter-increment: list-item -2"></li>
<div></div>
<li class="pure-set">
<ol reversed>
<li style="counter-increment: list-item -3"></li>
<div style="counter-increment: list-item -3"></div>
<div style="counter-increment: list-item 1"></div>
<div></div>
<li class="pure-set"></li>
<li style="counter-increment: list-item -8"></li>
</ol>
</li>
<div></div>
<li style="counter-increment: list-item -2"></li>
</ol>
<ol reversed>
<div style="counter-increment: list-item 1"></div>
<div style="counter-increment: list-item -2"></div>
<li class="pure-set"></li>
<li style="counter-increment: list-item -1"></li>
<ol reversed>
<div><span></span></div>
<div style="counter-increment: list-item -1"></div>
<li class="pure-set"><span></span></li>
<div></div>
<li style="counter-increment: list-item -2"><span></span></li>
<div></div>
<li style="counter-increment: list-item -2"><span></span></li>
<div><span></span></div>
</ol>
</li>
<li style="counter-increment: list-item -8"></li>
</ol>
<ol reversed>
<div><span></span></div>
<li style="counter-increment: list-item 2"></li>
<li class="pure-set"></li>
<div><span></span></div>
<li style="counter-increment: list-item 2"></li>
<ol reversed>
<li style="counter-increment: list-item 3"></li>
<li style="counter-increment: list-item 1"></li>
<div style="counter-increment: list-item 4"></div>
<div><span></span></div>
<li class="pure-set"></li>
<div><span></span></div>
</ol>
</li>
</ol>
<ol reversed>
<ol reversed>
<div style="counter-increment: list-item -1"></div>
<div style="counter-increment: list-item 2"></div>
<li class="pure-set"></li>
<li style="counter-increment: list-item 1"></li>
<li style="counter-increment: list-item 8"></li>
</ol>
<li style="counter-increment: list-item 3"></li>
<li style="counter-increment: list-item 1"></li>
<div style="counter-increment: list-item 4"></div>
<li class="pure-set"></li>
</ol>