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: neutral when nested</title> | 5 <title>HTML Test: BDI: neutral when nested</title> |
6 <link rel="match" href="bdi-neutral-nested-ref.html"/> | 6 <link rel="match" href="bdi-neutral-nested-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 This must apply when a BDI is nested within a BDI."/> | 14 This must apply when a BDI is nested within a BDI."/> |
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 </div> | 34 </div> |
35 <div class="test"> | 35 <div class="test"> |
36 <div dir="ltr">א + <bdi>[a + <bdi>[ב + <bdi>[b + 4]</bdi> +
3]</bdi> + 2]</bdi> + 1</div> | 36 <div dir="ltr">א + <bdi>[a + <bdi>[ב + <bdi>[b + 4]</bdi> +
3]</bdi> + 2]</bdi> + 1</div> |
37 <div dir="ltr">א + <bdi dir="rtl">[a + <bdi dir="ltr">[ב + <
bdi dir="rtl">[b + 4]</bdi> + 3]</bdi> + 2]</bdi> + 1</div> | 37 <div dir="ltr">א + <bdi dir="rtl">[a + <bdi dir="ltr">[ב + <
bdi dir="rtl">[b + 4]</bdi> + 3]</bdi> + 2]</bdi> + 1</div> |
38 <div dir="ltr">א + <bdi dir="ltr">[a + <bdi dir="rtl">[ב + <
bdi dir="ltr">[b + 4]</bdi> + 3]</bdi> + 2]</bdi> + 1</div> | 38 <div dir="ltr">א + <bdi dir="ltr">[a + <bdi dir="rtl">[ב + <
bdi dir="ltr">[b + 4]</bdi> + 3]</bdi> + 2]</bdi> + 1</div> |
39 <div dir="rtl">a + <bdi>[א + <bdi>[b + <bdi>[ב + 3]</bdi> +
2]</bdi> + 1]</bdi> + 0</div> | 39 <div dir="rtl">a + <bdi>[א + <bdi>[b + <bdi>[ב + 3]</bdi> +
2]</bdi> + 1]</bdi> + 0</div> |
40 <div dir="rtl">a + <bdi dir="ltr">[א + <bdi dir="rtl">[b + <bdi dir
="ltr">[ב + 3]</bdi> + 2]</bdi> + 1]</bdi> + 0</div> | 40 <div dir="rtl">a + <bdi dir="ltr">[א + <bdi dir="rtl">[b + <bdi dir
="ltr">[ב + 3]</bdi> + 2]</bdi> + 1]</bdi> + 0</div> |
41 <div dir="rtl">a + <bdi dir="rtl">[א + <bdi dir="ltr">[b + <bdi dir
="rtl">[ב + 3]</bdi> + 2]</bdi> + 1]</bdi> + 0</div> | 41 <div dir="rtl">a + <bdi dir="rtl">[א + <bdi dir="ltr">[b + <bdi dir
="rtl">[ב + 3]</bdi> + 2]</bdi> + 1]</bdi> + 0</div> |
42 </div> | 42 </div> |
43 <div class="ref"> | 43 <div class="ref"> |
44 <div dir="ltr">‭1 + [a + [3 + [b + 4] + ב] + 2] + א&#
x202C;</div> | 44 <div dir="ltr">‭1 + [a + [3 + [b + 4] + ב] + 2] + א&#
x202C;</div> |
45 <div dir="ltr">‭1 + [a + [3 + [b + 4] + ב] + 2] + א&#
x202C;</div> | 45 <div dir="ltr">‭1 + [a + [3 + [b + 4] + ב] + 2] + א&#
x202C;</div> |
46 <div dir="ltr">‭1 + [a + [3 + [b + 4] + ב] + 2] + א&#
x202C;</div> | 46 <div dir="ltr">‭1 + [a + [3 + [b + 4] + ב] + 2] + א&#
x202C;</div> |
47 <div dir="rtl">‭a + [1 + [b + [3 + ב] + 2] + א] + 0&#
x202C;</div> | 47 <div dir="rtl">‭a + [1 + [b + [3 + ב] + 2] + א] + 0&#
x202C;</div> |
48 <div dir="rtl">‭a + [1 + [b + [3 + ב] + 2] + א] + 0&#
x202C;</div> | 48 <div dir="rtl">‭a + [1 + [b + [3 + ב] + 2] + א] + 0&#
x202C;</div> |
49 <div dir="rtl">‭a + [1 + [b + [3 + ב] + 2] + א] + 0&#
x202C;</div> | 49 <div dir="rtl">‭a + [1 + [b + [3 + ב] + 2] + א] + 0&#
x202C;</div> |
50 </div> | 50 </div> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |