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).'">
18 border: medium solid gray;
25 The two boxes below should look exactly the same.
26 <!-- Key to entities used below:
27 א ... ו - The first six Hebrew letters (strongly RTL).
28 ‭ - The LRO (left-to-right-override) formatting character.
29 ‬ - The PDF (pop directional formatting) formatting character; closes LRO. -->
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.
37 <div dir=
"ltr"><bdi>[:)]
</bdi>,
<bdi>[+- a
ב]
</bdi>,
<bdi>[
1 ג d]
</bdi>...
</div>
38 <div dir=
"rtl"><bdi>[:)]
</bdi>,
<bdi>[+- a
ב]
</bdi>,
<bdi>[
1 ג d]
</bdi>...
</div>
41 <div dir=
"ltr">‭[:)], [+- a
ב], [d
ג 1]...
‬</div>
42 <div dir=
"rtl">‭...[d
ג 1] ,[+- a
ב] ,[:)]
‬</div>