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-paragraph-level-container-ref.html"/> | 6 <link rel="match" href="bdi-paragraph-level-container-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 contents
of a bdi element, | 11 'For the purposes of applying the bidirectional algorithm to the contents
of a bdi element, |
12 user agents must treat the element as a paragraph-level container.' | 12 user agents must treat the element as a paragraph-level container.' |
13 Thus, under no circumstances should the content outside a BDI affect the v
isual | 13 Thus, under no circumstances should the content outside a BDI affect the v
isual |
14 ordering of the BDI's content."/> | 14 ordering of the BDI's content."/> |
15 <style> | 15 <style> |
16 body{ | 16 body{ |
17 font-size:2em; | 17 font-size:2em; |
18 } | 18 } |
19 .test, .ref { | 19 .test, .ref { |
20 border: medium solid gray; | 20 border: medium solid gray; |
21 width: 500px; | 21 width: 500px; |
22 margin: 20px; | 22 margin: 20px; |
23 } | 23 } |
24 .comments { display: none; } | 24 .comments { display: none; } |
25 </style> | 25 </style> |
26 </head> | 26 </head> |
27 <body> | 27 <body> |
28 <div class="instructions" style="display:none"><p>Test passes if the two box
es below look exactly the same.</p></div> | 28 <div class="instructions"><p>Test passes if the two boxes below look exactly
the same.</p></div> |
29 <div class="comments"> | 29 <div class="comments"> |
30 Key to entities used below: | 30 Key to entities used below: |
31 א ... ו - The first six Hebrew letters (strongly RTL). | 31 א ... ו - The first six Hebrew letters (strongly RTL). |
32 ‭ - The LRO (left-to-right override) formatting character. | 32 ‭ - The LRO (left-to-right override) formatting character. |
33 ‬ - The PDF (pop directional formatting) formatting character; cl
oses LRO. | 33 ‬ - The PDF (pop directional formatting) formatting character; cl
oses LRO. |
34 If the BDIs in the test's first DIV were just SPANs, the א would or
der the 1 2 3 as | 34 If the BDIs in the test's first DIV were just SPANs, the א would or
der the 1 2 3 as |
35 3 2 1, and the ו would (with the ה) order the ?! as !?. | 35 3 2 1, and the ו would (with the ה) order the ?! as !?. |
36 </div> | 36 </div> |
37 <div class="test"> | 37 <div class="test"> |
38 <div dir="ltr">א <bdi>[1 2 3 b]</bdi> c <bdi>[d ה?!]</bdi> &
#x05D5;...</div> | 38 <div dir="ltr">א <bdi>[1 2 3 b]</bdi> c <bdi>[d ה?!]</bdi> &
#x05D5;...</div> |
39 <div dir="rtl">a <bdi>[1 2 3 ב]</bdi> ג <bdi>[ד e?!]<
/bdi> f...</div> | 39 <div dir="rtl">a <bdi>[1 2 3 ב]</bdi> ג <bdi>[ד e?!]<
/bdi> f...</div> |
40 </div> | 40 </div> |
41 <div class="ref"> | 41 <div class="ref"> |
42 <div dir="ltr">‭א [1 2 3 b] c [d ה?!] ו...
02C;</div> | 42 <div dir="ltr">‭א [1 2 3 b] c [d ה?!] ו...
02C;</div> |
43 <div dir="rtl">‭...f [!?e ד] ג [ב 3 2 1] a
02C;</div> | 43 <div dir="rtl">‭...f [!?e ד] ג [ב 3 2 1] a
02C;</div> |
44 </div> | 44 </div> |
45 </body> | 45 </body> |
46 </html> | 46 </html> |
OLD | NEW |