bidi-first-letter-005

:first-letter and bidi-override - inherent rtl text

WeasyPrint

This browser

Assertion
:first-letter applied to inherent RTL text reordered with bidi-override should pick out the first logical letter

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: :first-letter and bidi-override - inherent rtl text</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/selector.html#first-letter">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-unicode-bidi">
 8     <meta name="flags" content="">
 9     <meta name="assert" content=":first-letter applied to inherent RTL text reordered with bidi-override should pick out the first logical letter">
10     <style type="text/css">
11     p.test {
12     font-size: 2em;
13     unicode-bidi: bidi-override; 
14     direction:ltr;
15     }
16     p.test:first-letter {
17     color:blue;
18     }
19     </style> 
20   </head> 
21   <body> 
22 
23     <p>The א below should be blue.</p>
24 
25     <p class="test">אבב</p>
26 
27   </body>
28 </html>