bidi-lines-001.html (882B)
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 <link rel="help" href="https://drafts.csswg.org/css-text-3/#bidi-linebox"> 6 <link rel="match" href="reference/bidi-lines-001-ref.html"> 7 <meta name=assert content="with unicode-bidi: plaintext, lines from bidi paragraphs with strong directionality use that direction"> 8 <style> 9 div { 10 font-size: 2em; 11 width: 10em; 12 white-space: pre; 13 text-align: start; 14 unicode-bidi: plaintext; 15 border: solid; padding: 0 0.5ch; 16 } 17 18 </style> 19 20 <p>This test passes if all instances of “français” are left aligned, and all instances of “فارسی” are right aligned within the box below. 21 22 <div>français 23 فارسی 24 français 25 فارسی 26 français 27 فارسی</div>