bidi-first-letter-002

first-letter and inherent rtl

WeasyPrint

This browser

Assertion
:first-letter applied to inherent RTL text should start from the right

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 inherent 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/selector.html#first-letter">
 7     <meta name="flags" content="">
 8     <meta name="assert" content=":first-letter applied to inherent RTL text should start from the right">
 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>The rightmost letter (א) in the line below should be blue.</p>
17 
18     <p class="test">אבב בבב בבב</p>
19 
20   </body>
21 </html>