bidi-direction-001

direction:rtl on body

WeasyPrint

This browser

Assertion
direction:rtl on body should inherit to paragraphs

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 on body</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#propdef-direction">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction">
 8     <meta name="flags" content="">
 9     <meta name="assert" content="direction:rtl on body should inherit to paragraphs">
10     <style type="text/css">
11       body {direction: rtl;}
12       .passcond {direction:ltr;}
13       .control {direction:ltr;text-align:right;}
14     </style>
15   </head>
16   
17   <body>
18     
19     <p class="passcond">The lines below should be identical:</p>
20     <p class="control">a b c!</p>
21     
22     <p>!a b c</p>
23     
24 </body>
25 </html>