bidi-lines-001-ref.html (719B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text Test: unicode-bidi: plaintext and paragraphs with strong directionality</title> 4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 5 <style> 6 section { 7 text-align: start; 8 font-size: 2em; 9 border: solid; 10 padding: 0 0.5ch; 11 width: 10em; 12 } 13 </style> 14 15 <p>This test passes if all instances of “français” are left aligned, and all instances of “فارسی” are right aligned within the box below. 16 17 <section> 18 <div dir=ltr>français</div> 19 <div dir=rtl>فارسی</div> 20 <div dir=ltr>français</div> 21 <div dir=rtl>فارسی</div> 22 <div dir=ltr>français</div> 23 <div dir=rtl>فارسی</div> 24 </section>