Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / international / bdi-dir-default-to-auto.html
blob2c88322a50d9f866b6f90adfa98c83e481415d9c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>HTML Test: BDI: paragraph-level container</title>
6 <link rel="reference" href="bdi-auto-dir-default-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 'The dir global attribute defaults to auto on this element (it never inherits from the parent
12 element like with other elements).'">
13 <style>
14 body{
15 font-size:2em;
17 .box {
18 border: medium solid gray;
19 width: 500px;
20 margin: 20px;
22 </style>
23 </head>
24 <body>
25 The two boxes below should look exactly the same.
26 <!-- Key to entities used below:
27 &#x05D0; ... &#x05D5; - The first six Hebrew letters (strongly RTL).
28 &#x202D; - The LRO (left-to-right-override) formatting character.
29 &#x202C; - The PDF (pop directional formatting) formatting character; closes LRO. -->
30 <div class="box">
31 <!--
32 In each DIV below:
33 - the first BDI, having no characters with strong direction, should be LTR by default;
34 - the second BDI, having an LTR character first, should be LTR by default;
35 - the third BDI, having an RTL character first, should be RTL by default.
36 -->
37 <div dir="ltr"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D2; d]</bdi>...</div>
38 <div dir="rtl"><bdi>[:)]</bdi>, <bdi>[+- a &#x05D1;]</bdi>, <bdi>[1 &#x05D2; d]</bdi>...</div>
39 </div>
40 <div class="box">
41 <div dir="ltr">&#x202D;[:)], [+- a &#x05D1;], [d &#x05D2; 1]...&#x202C;</div>
42 <div dir="rtl">&#x202D;...[d &#x05D2; 1] ,[+- a &#x05D1;] ,[:)]&#x202C;</div>
43 </div>
44 </body>
45 </html>