li-value-reversed-006b.html (1348B)
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-006-ref.html"> 9 <meta name="assert" content="The last counter-increment value determines the start value."> 10 <style> 11 :root { 12 color:black; background-color:white; font:10px/1 monospace; 13 } 14 ol { 15 counter-reset: reversed(list-item); 16 } 17 ol::before, li::before { 18 content: counters(list-item,"."); 19 } 20 </style> 21 <ol> 22 <li style="counter-increment: list-item -2"> 23 <li style="counter-increment: list-item -2"> 24 <li style="counter-increment: list-item -2"> 25 </ol> 26 <ol> 27 <li style="counter-increment: list-item -3"> 28 <li style="counter-increment: list-item -1"> 29 <li style="counter-increment: list-item -8"> 30 </ol> 31 <ol> 32 <li style="counter-increment: list-item 2"> 33 <li style="counter-increment: list-item 2"> 34 <li style="counter-increment: list-item 2"> 35 </ol> 36 <ol> 37 <li style="counter-increment: list-item 3"> 38 <li style="counter-increment: list-item 1"> 39 <li style="counter-increment: list-item 8"> 40 </ol>