list-style-type-017

CSS Lists: Negative Numbers

WeasyPrint

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: CSS Lists: Negative Numbers</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/list-style-type/002.xml" type="application/xhtml+xml">
 8   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/list-style-type/002.html" type="text/html">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
10   <style type="text/css">
11    ol { counter-reset: list-item -3; }
12    li { list-style: decimal; }
13   </style>
14  </head>
15  <body>
16   <p>The following two columns of numbers should be identical.</p>
17   <ol start="-3">
18    <li> -3. </li>
19    <li> -2. </li>
20    <li> -1. </li>
21    <li> 0. </li>
22    <li> 1. </li>
23    <li> 2. </li>
24    <li> 3. </li>
25   </ol>
26  </body>
27 </html>