bidi-first-letter-006

:first-letter in the middle of the line because of bidi reordering

WeasyPrint

This browser

Assertion
:first-letter not at the start of the line because of bidi reordering may not be applied, but if it is applied it should be applied to the logical first letter and no other 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 in the middle of the line because of bidi reordering</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     <meta name="flags" content="">
 8     <meta name="assert" content=":first-letter not at the start of the line because of bidi reordering may not be applied, but if it is applied it should be applied to the logical first letter and no other letter">
 9     <style type="text/css">
10     .test {font-size: 2em;}
11     .test:first-letter {color:blue;}
12     </style> 
13   </head> 
14   <body> 
15 
16     <p>If anything below is blue, it should be the א. No blue at all is also pass. Any other blue letter is fail.</p>
17 
18     <p class="test">אבב בב בב xxxx xxx</p>
19 
20   </body>
21 </html>