712600-1.html (2080B)
1 <!DOCTYPE html> 2 <html><head> 3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 4 <meta charset="utf-8"> 5 <title>HTML Test: BDI: neutral to surrounding letters</title> 6 <link rel="reference" href="https://bug712600.bugzilla.mozilla.org/bdi-neutral-to-surrounding-run-ref.html"> 7 <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"> 8 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com"> 9 <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-bdi-element"> 10 <meta name="assert" content=" 11 'For the purposes of applying the bidirectional algorithm to the paragraph-level 12 container that a bdi element finds itself within, the bdi element must be treated 13 like a U+FFFC OBJECT REPLACEMENT CHARACTER.' 14 15 Thus, regardless of its content and its dir attribute (if any), a BDI will not prevent 16 a strongly RTL (or LTR) character preceding it from forming a single directional run with 17 another strongly RTL (LTR) character following it."> 18 <style> 19 body{ 20 font-size:2em; 21 } 22 </style> 23 </head> 24 <body> 25 <!-- Key to entities used below: 26 א ... ו - The first six Hebrew letters (strongly RTL). 27 ‭ - The LRO (left-to-right-override) formatting character. 28 ‬ - The PDF (pop directional formatting) formatting character; closes LRO. --> 29 30 <!-- 31 If the BDI in the following DIV were a SPAN, its b would prevent the א and the ב 32 from forming a single RTL run and thus keep the >s between from being mirrored into <s. 33 --> 34 <div dir="ltr">א > <bdi>[b]</bdi> > ג...</div> 35 <div dir="ltr">א > <bdi dir="ltr">[b]</bdi> > ג...</div> 36 <div dir="ltr">א > <bdi dir="rtl">[b]</bdi> > ג...</div> 37 <div dir="rtl">a > <bdi>[ב]</bdi> > c...</div> 38 <div dir="rtl">a > <bdi dir="ltr">[ב]</bdi> > c...</div> 39 <div dir="rtl">a > <bdi dir="rtl">[ב]</bdi> > c...</div> 40 41 42 </body></html>