li-value-reversed-006e.html (1653B)
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="Reversed value initialization works also for sibling scopes."> 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 ol[reversed] { 18 margin-bottom: 0; 19 } 20 ol.no-counter { 21 counter-reset: blah; 22 margin-top: 0; 23 } 24 ol.no-counter::before { 25 content: none; 26 } 27 </style> 28 <ol reversed></ol> 29 <ol class="no-counter"> 30 <li style="counter-increment: list-item -2"></li> 31 <li style="counter-increment: list-item -2"></li> 32 <li style="counter-increment: list-item -2"></li> 33 </ol> 34 <ol reversed></ol> 35 <ol class="no-counter"> 36 <li style="counter-increment: list-item -3"></li> 37 <li style="counter-increment: list-item -1"></li> 38 <li style="counter-increment: list-item -8"></li> 39 </ol> 40 <ol reversed></ol> 41 <ol class="no-counter"> 42 <li style="counter-increment: list-item 2"></li> 43 <li style="counter-increment: list-item 2"></li> 44 <li style="counter-increment: list-item 2"></li> 45 </ol> 46 <ol reversed></ol> 47 <ol class="no-counter"> 48 <li style="counter-increment: list-item 3"></li> 49 <li style="counter-increment: list-item 1"></li> 50 <li style="counter-increment: list-item 8"></li> 51 </ol>