bdi-neutral-to-letter-preceding-2.html (2335B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"/> 5 <title>HTML Test: BDI: neutral to immediately preceding letter</title> 6 <link rel="match" href="bdi-neutral-to-letter-preceding-2-ref.html"/> 7 <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/> 8 <link rel="author" title="Shai Berger" href="mailto:shai@platonix.com"/> 9 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com"/> 10 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdi-element"/> 11 <meta name="assert" content=" 12 'For the purposes of applying the bidirectional algorithm to the paragraph-level 13 container that a bdi element finds itself within, the bdi element must be treated 14 like a U+FFFC OBJECT REPLACEMENT CHARACTER.'"/> 15 <style> 16 body{ 17 font-size:2em; 18 } 19 .test, .ref { 20 border: medium solid gray; 21 width: 400px; 22 margin: 20px; 23 } 24 .comments { display: none; } 25 </style> 26 </head> 27 <body> 28 <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div> 29 <div class="comments"> 30 Key to entities used below: 31 א ... ו - The first six Hebrew letters (strongly RTL). 32 ‭ - The LRO (left-to-right override) formatting character. 33 ‬ - The PDF (pop directional formatting) formatting character; closes LRO. 34 If the BDI in the test's first DIV were a SPAN, the ב would be rendered to the left 35 of the א 36 </div> 37 <div class="test"> 38 <div dir="ltr">א<bdi>ב</bdi>...</div> 39 <div dir="ltr">א<bdi dir="rtl">ב</bdi>...</div> 40 <div dir="ltr">א<bdi dir="ltr">ב</bdi>...</div> 41 <div dir="rtl">a<bdi>b</bdi>...</div> 42 <div dir="rtl">a<bdi dir="ltr">b</bdi>...</div> 43 <div dir="rtl">a<bdi dir="rtl">b</bdi>...</div> 44 </div> 45 <div class="ref"> 46 <div dir="ltr">‭אב...‬</div> 47 <div dir="ltr">‭אב...‬</div> 48 <div dir="ltr">‭אב...‬</div> 49 <div dir="rtl">‭...ba‬</div> 50 <div dir="rtl">‭...ba‬</div> 51 <div dir="rtl">‭...ba‬</div> 52 </div> 53 </body> 54 </html>