bidi-override-005

unicode-bidi: bidi-override on nested div

WeasyPrint

This browser

Assertion
bidi-override should be applied to inline-level descendants but not block-level descendants

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: unicode-bidi: bidi-override on nested div</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-unicode-bidi">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction">
 8     <meta name="flags" content="">
 9     <meta name="assert" content="bidi-override should be applied to inline-level descendants but not block-level descendants">
10     <style type="text/css">
11       .override {
12       direction: rtl;
13       unicode-bidi: bidi-override;
14       }
15     </style>
16   </head>
17   
18   <body>
19     <p>
20       The lines below should be identical, ignoring whitespace:
21     </p>
22     
23     <div class="override">
24       cba
25       <div>
26 	abc
27       </div>
28     </div>
29   </body>
30 </html>