bidi-unicode-bidi-001

unicode-bidi: bidi-override - rtl

WeasyPrint

This browser

Assertion
unicode-bidi: bidi-override should order characters strictly according to value of direction property

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 - rtl</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="unicode-bidi: bidi-override should order characters strictly according to value of direction property">
10     <style type="text/css">
11       .override {
12       direction: rtl;
13       unicode-bidi: bidi-override;
14       }
15       .passcond {direction:ltr;}
16       .control {direction:ltr;}
17     </style>
18   </head>
19   
20   <body>
21     
22     <p class="passcond">The lines below should be identical:</p>
23     <p class="control">a b, c d.</p>
24     
25     <p>a b, <span class="override">d c</span>.</p>
26     
27   </body>
28 </html>