bidi-first-letter-003.xht (967B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: :first-letter and direction:rtl - inherent ltr 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-direction"/> 8 <meta name="assert" content=":first-letter applied to inherent LTR text in RTL context should adhere to text direction, not paragraph direction"/> 9 <style type="text/css"><![CDATA[ 10 p.test { 11 font-size: 2em; 12 direction:rtl; 13 } 14 p.test:first-letter { 15 color:blue; 16 } 17 ]]></style> 18 </head> 19 <body> 20 21 <p>The leftmost letter (a) in the line below should be blue.</p> 22 23 <p class="test">axx xxx xxx</p> 24 25 </body> 26 </html>