OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <meta charset="utf-8"/> |
| 5 <title>HTML Test: BDI: neutral when contains LRO or RLO without PDF</title> |
| 6 <link rel="match" href="bdi-neutral-missing-pdf-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@googleg
roups.com"/> |
| 9 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdi-eleme
nt"/> |
| 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 Thus, if a BDI contains LRO or RLO characters lacking a matching PDF, thes
e must not affect |
| 15 the visual ordering of the content outside the BDI."/> |
| 16 <style> |
| 17 body{ |
| 18 font-size:2em; |
| 19 } |
| 20 .test, .ref { |
| 21 border: medium solid gray; |
| 22 width: 400px; |
| 23 margin: 20px; |
| 24 } |
| 25 .comments { display: none; } |
| 26 </style> |
| 27 </head> |
| 28 <body> |
| 29 <div class="instructions" style="display:none"><p>Test passes if the two box
es below look exactly the same.</p></div> |
| 30 <div class="comments"> |
| 31 Key to entities used below: |
| 32 א ... ו - The first six Hebrew letters (strongly RTL). |
| 33 ‭ - The LRO (left-to-right override) formatting character. |
| 34 ‮ - the RLO (right-to-left-override) formatting character. |
| 35 ‬ - The PDF (pop directional formatting) formatting character; cl
oses LRO and RLO. |
| 36 If the BDI in the test's first DIV were a SPAN, the RLO it contains, not b
eing closed by a |
| 37 PDF, would visually reorder the de into ed. |
| 38 </div> |
| 39 <div class="test"> |
| 40 <div dir="ltr"><bdi>א‮bc</bdi>de...</div> |
| 41 <div dir="ltr"><bdi dir="ltr">א‮bc</bdi>de...</div> |
| 42 <div dir="ltr"><bdi dir="rtl">א‮bc</bdi>de...</div> |
| 43 <div dir="rtl"><bdi>a‭בג</bdi>דה...</di
v> |
| 44 <div dir="rtl"><bdi dir="ltr">a‭בג</bdi>ד
D4;...</div> |
| 45 <div dir="rtl"><bdi dir="rtl">a‭בג</bdi>ד
D4;...</div> |
| 46 </div> |
| 47 <div class="ref"> |
| 48 <div dir="ltr">‭cbאde...‬</div> |
| 49 <div dir="ltr">‭cbאde...‬</div> |
| 50 <div dir="ltr">‭cbאde...‬</div> |
| 51 <div dir="rtl">‭...הדaבג‬</div> |
| 52 <div dir="rtl">‭...הדaבג‬</div> |
| 53 <div dir="rtl">‭...הדaבג‬</div> |
| 54 </div> |
| 55 </body> |
| 56 </html> |
OLD | NEW |