bidi-list-001

direction:rtl - unordered list

WeasyPrint

This browser

Assertion
direction:rtl should apply to unordered lists, putting bullets on the right

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: direction:rtl - unordered list</title>
 5     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
 6     <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
 8     <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#alignment-prop">
 9     <meta name="flags" content="">
10     <meta name="assert" content="direction:rtl should apply to unordered lists, putting bullets on the right">
11     <style type="text/css">
12       ul {direction: rtl;}
13       ul,li {padding-left:2em;padding-right:2em;}
14     </style>
15   </head>
16   
17   <body>
18     <ul>
19       <li>This list has three items</li>
20       <li>And should be right-aligned</li>
21       <li>With bullets to the right</li>
22     </ul>
23   </body>
24 </html>