| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"/> | 4 <meta charset="utf-8"/> |
| 5 <title>HTML Test: BDI: paragraph-level container</title> | 5 <title>HTML Test: BDI: paragraph-level container</title> |
| 6 <link rel="match" href="bdi-neutral-separate-ref.html"/> | 6 <link rel="match" href="bdi-neutral-separate-ref.html"/> |
| 7 <link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/> | 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"/> | 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"/> | 9 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-bdi-eleme
nt"/> |
| 10 <meta name="assert" content=" | 10 <meta name="assert" content=" |
| 11 'For the purposes of applying the bidirectional algorithm to the paragraph
-level | 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 | 12 container that a bdi element finds itself within, the bdi element must be
treated |
| 13 like a U+FFFC OBJECT REPLACEMENT CHARACTER.' | 13 like a U+FFFC OBJECT REPLACEMENT CHARACTER.' |
| 14 Thus, under no circumstances should any part of the content outside a BDI
be visually | 14 Thus, under no circumstances should any part of the content outside a BDI
be visually |
| 15 reordered inside the BDI's content."/> | 15 reordered inside the BDI's content."/> |
| 16 <style> | 16 <style> |
| 17 body{ | 17 body{ |
| 18 font-size:2em; | 18 font-size:2em; |
| 19 } | 19 } |
| 20 .test, .ref { | 20 .test, .ref { |
| 21 border: medium solid gray; | 21 border: medium solid gray; |
| 22 width: 500px; | 22 width: 500px; |
| 23 margin: 20px; | 23 margin: 20px; |
| 24 } | 24 } |
| 25 .comments { display: none; } | 25 .comments { display: none; } |
| 26 </style> | 26 </style> |
| 27 </head> | 27 </head> |
| 28 <body> | 28 <body> |
| 29 <div class="instructions" style="display:none"><p>Test passes if the two box
es below look exactly the same.</p></div> | 29 <div class="instructions"><p>Test passes if the two boxes below look exactly
the same.</p></div> |
| 30 <div class="comments"> | 30 <div class="comments"> |
| 31 Key to entities used below: | 31 Key to entities used below: |
| 32 א ... ו - The first six Hebrew letters (strongly RTL). | 32 א ... ו - The first six Hebrew letters (strongly RTL). |
| 33 ‭ - The LRO (left-to-right override) formatting character. | 33 ‭ - The LRO (left-to-right override) formatting character. |
| 34 ‬ - The PDF (pop directional formatting) formatting character; cl
oses LRO. | 34 ‬ - The PDF (pop directional formatting) formatting character; cl
oses LRO. |
| 35 If the BDIs in the test's first DIV were just SPANs, the א would ap
pear between the 1 | 35 If the BDIs in the test's first DIV were just SPANs, the א would ap
pear between the 1 |
| 36 and the b, and the ו between the d and the ה. | 36 and the b, and the ו between the d and the ה. |
| 37 </div> | 37 </div> |
| 38 <div class="test"> | 38 <div class="test"> |
| 39 <div dir="ltr">א <bdi>[1 b]</bdi> c <bdi>[d ה]</bdi> ו
;...</div> | 39 <div dir="ltr">א <bdi>[1 b]</bdi> c <bdi>[d ה]</bdi> ו
;...</div> |
| 40 <div dir="rtl">a <bdi>[1 ב]</bdi> ג <bdi>[ד e]</bdi>
f...</div> | 40 <div dir="rtl">a <bdi>[1 ב]</bdi> ג <bdi>[ד e]</bdi>
f...</div> |
| 41 </div> | 41 </div> |
| 42 <div class="ref"> | 42 <div class="ref"> |
| 43 <div dir="ltr">‭א [1 b] c [d ה] ו...‬</
div> | 43 <div dir="ltr">‭א [1 b] c [d ה] ו...‬</
div> |
| 44 <div dir="rtl">‭...f [e ד] ג [ב 1] a‬</
div> | 44 <div dir="rtl">‭...f [e ד] ג [ב 1] a‬</
div> |
| 45 </div> | 45 </div> |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |