list-style-position-inside-002

inside list-item marker position wrt :before and :after

WeasyPrint

This browser

Assertion
The list-item marker is on the right side for an RTL item and on the left side for an LTR one.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: inside list-item marker position wrt :before and :after</title>
 5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
 7   <meta name="flags" content="">
 8   <meta name="assert" content="The list-item marker is on the right side for an         RTL item and on the left side for an LTR one.">
 9   <style type="text/css">
10     ul, li {
11       margin: 0;
12       padding: 0;
13       color: blue;
14       font: bold larger monospace;
15     }
16     li {
17       list-style: inside decimal;
18     }
19     li:before {
20       content: "2";
21     }
22     li:after {
23       content: "4";
24     }
25   </style>
26  </head>
27  <body>
28   <p>The numbers [1, 2, 3, 4] below must be in ascending order.</p>
29   <ul>
30     <li>3</li>
31   </ul>
32  </body>
33 </html>