li-value-reversed-008a.html (1594B)
1 <!doctype html> 2 <title></title> 3 <link rel="help" href="https://drafts.csswg.org/css-lists/#instantiating-counters"> 4 <link rel="help" href="https://html.spec.whatwg.org/#attr-ol-reversed"> 5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/6738"> 6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1706346"> 7 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com"> 8 <link rel="match" href="li-value-reversed-008-ref.html"> 9 <meta name="assert" content="The last (non-zero) counter-increment value before the first counter-set determines the start value."> 10 <style> 11 :root { 12 color:black; background-color:white; font:10px/1 monospace; 13 } 14 ol::before, li::before { 15 content: counters(list-item,"."); 16 } 17 </style> 18 <ol reversed> 19 <li style="counter-increment: list-item -2"> 20 <li style="counter-increment: list-item -2"> 21 <li style="counter-set: list-item 5"><!-- note: there's an implicit -1 increment here --> 22 <li style="counter-increment: list-item -2"> 23 </ol> 24 <ol reversed> 25 <li style="counter-increment: list-item -3"> 26 <li style="counter-increment: list-item -2; counter-set: list-item 5"> 27 <li style="counter-increment: list-item -1"> 28 <li style="counter-increment: list-item -8"> 29 </ol> 30 <ol reversed> 31 <li style="counter-increment: list-item 2; counter-set: list-item 5"> 32 <li style="counter-increment: list-item 2"> 33 <li style="counter-increment: list-item 2"> 34 </ol> 35 <ol reversed> 36 <li style="counter-increment: list-item 3"> 37 <li style="counter-increment: list-item 1"> 38 <li style="counter-increment: list-item 8; counter-set: list-item 5"> 39 </ol>