li-value-reversed-006c.html (1641B)
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="A zero-valued counter-increment does not affect the counter 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 div, span { 18 counter-increment: list-item 0; 19 } 20 </style> 21 <ol reversed> 22 <div></div> 23 <li style="counter-increment: list-item -2"><span></span><span></span></li> 24 <li style="counter-increment: list-item -2"><span></span></li> 25 <li style="counter-increment: list-item -2"><span></span></li> 26 <div></div> 27 <div></div> 28 <div></div> 29 </ol> 30 <ol reversed> 31 <div></div> 32 <li style="counter-increment: list-item -3"></li> 33 <div></div> 34 <li style="counter-increment: list-item -1"><span></span></li> 35 <li style="counter-increment: list-item -8"></li> 36 <div></div> 37 </ol> 38 <ol reversed> 39 <div></div> 40 <li style="counter-increment: list-item 2"></li> 41 <li style="counter-increment: list-item 2"></li> 42 <li style="counter-increment: list-item 2"></li> 43 </ol> 44 <ol reversed> 45 <li style="counter-increment: list-item 3"></li> 46 <li style="counter-increment: list-item 1"></li> 47 <li style="counter-increment: list-item 8"></li> 48 <div></div> 49 </ol>