bdi-neutral-to-another-bdi-1.html (2745B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>HTML Test: BDI: neutral to another BDI</title> 6 <link rel="match" href="bdi-neutral-to-another-bdi-1-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 Thus, when a BDI contains text of the same strong direction as another BDI following it, the 16 two must not form a directional run as would be the case if the BDIs were just SPANs." /> 17 <style> 18 body{ 19 font-size:2em; 20 } 21 .test, .ref { 22 border: medium solid gray; 23 width: 400px; 24 margin: 20px; 25 } 26 .comments { 27 display: none; 28 } 29 </style> 30 </head> 31 <body> 32 <div class="instructions">Test passes if the two boxes below look exactly the same.</div> 33 <div class="comments"> 34 Key to entities used below: 35 א ... ו - The first six Hebrew letters (strongly RTL). 36 ‭ - The LRO (left-to-right override) formatting character. 37 ‬ - The PDF (pop directional formatting) formatting character; closes LRO. 38 If the BDIs in the test's first DIV were SPANs, the ב would be rendered to the left 39 of the א. 40 </div> 41 <div class="test"> 42 <div dir="ltr"><bdi>[א]</bdi> > <bdi>[ב]</bdi>...</div> 43 <div dir="ltr"><bdi dir="rtl">[א]</bdi> > <bdi dir="rtl">[ב]</bdi>...</div> 44 <div dir="ltr"><bdi dir="ltr">[א]</bdi> > <bdi dir="ltr">[ב]</bdi>...</div> 45 <div dir="rtl"><bdi>[a]</bdi> > <bdi>[b]</bdi>...</div> 46 <div dir="rtl"><bdi dir="ltr">[a]</bdi> > <bdi dir="ltr">[b]</bdi>...</div> 47 <div dir="rtl"><bdi dir="rtl">[a]</bdi> > <bdi dir="rtl">[b]</bdi>...</div> 48 </div> 49 <div class="ref"> 50 <div dir="ltr">‭[א] > [ב]...‬</div> 51 <div dir="ltr">‭[א] > [ב]...‬</div> 52 <div dir="ltr">‭[א] > [ב]...‬</div> 53 <div dir="rtl">‭...[b] < [a]‬</div> 54 <div dir="rtl">‭...[b] < [a]‬</div> 55 <div dir="rtl">‭...[b] < [a]‬</div> 56 </div> 57 </body> 58 </html>