tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

foo-counter-reversed-008a.html (1542B)


      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://github.com/w3c/csswg-drafts/issues/6738">
      5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1706346">
      6 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
      7 <link rel="match" href="li-value-reversed-008-ref.html">
      8 <meta name="assert" content="The last (non-zero) counter-increment value before the first counter-set determines the start value.">
      9 <style>
     10 :root {
     11  color:black; background-color:white; font:10px/1 monospace;
     12 }
     13 ::marker {
     14  content: counter(foo) ". ";
     15 }
     16 ol::before, li::before {
     17  content: counters(foo,".");
     18 }
     19 ol[reversed] {
     20  counter-reset: reversed(foo);
     21 }
     22 li {
     23  counter-increment: foo -1;
     24 }
     25 </style>
     26 <ol reversed>
     27 <li style="counter-increment: foo -2">
     28 <li style="counter-increment: foo -2">
     29 <li style="counter-set: foo 5"><!-- note: there's an implicit -1 increment here -->
     30 <li style="counter-increment: foo -2">
     31 </ol>
     32 <ol reversed>
     33 <li style="counter-increment: foo -3">
     34 <li style="counter-increment: foo -2; counter-set: foo 5">
     35 <li style="counter-increment: foo -1">
     36 <li style="counter-increment: foo -8">
     37 </ol>
     38 <ol reversed>
     39 <li style="counter-increment: foo 2; counter-set: foo 5">
     40 <li style="counter-increment: foo 2">
     41 <li style="counter-increment: foo 2">
     42 </ol>
     43 <ol reversed>
     44 <li style="counter-increment: foo 3">
     45 <li style="counter-increment: foo 1">
     46 <li style="counter-increment: foo 8; counter-set: foo 5">
     47 </ol>