tor-browser

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

counter-reset-increment-002.xht (1322B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: counter-reset - negative value with positive counter-increment</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <!--
     11   Inspired by http://www.hixie.ch/tests/adhoc/css/box/list/list-style-type/002.html
     12   and by
     13   http://test.csswg.org/suites/css2.1/20100917/html4/list-style-type-017.htm
     14   -->
     15   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters" />
     16   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" />
     17   <link rel="match" href="counter-reset-increment-002-ref.xht" />
     18 
     19   <meta content="A positive counter-increment can apply to a counter-reset that is negative." name="assert" />
     20 
     21   <style type="text/css"><![CDATA[
     22   ol
     23   {
     24   counter-reset: list-item -4;
     25   list-style-type: none;
     26   }
     27 
     28   li:before
     29   {
     30   content: counter(list-item) ". ";
     31   }
     32   ]]></style>
     33 
     34  </head>
     35 
     36  <body>
     37 
     38   <p>The two columns of numbers should be <strong>identical</strong>.</p>
     39 
     40   <ol>
     41     <li> -3. </li>
     42     <li> -2. </li>
     43     <li> -1. </li>
     44     <li> 0. </li>
     45     <li> 1. </li>
     46     <li> 2. </li>
     47     <li> 3. </li>
     48   </ol>
     49 
     50  </body>
     51 </html>