Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8" />
5 <title>HTML Test: dir=auto, start with dir, then R</title>
6 <link rel="reference" href="dir_auto-contained-dir-R-ref.html" />
7 <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouche@google.com" />
8 <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" />
9 <link rel="author" title="Simon Montagu" href="mailto:smontagu@smontagu.org" />
10 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googlegroups.com" />
11 <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-dir-attribute" />
12 <meta name="assert" content="
13 When dir='auto', the direction is set according to the first strong character
14 of the text while ignoring contained elements with an explicit dir of their own.
15 In this test, it is the Latin letter D, thus the direction must be
16 resolved as LTR.
17 This is a variation of the original dir_auto-contained-dir-R.html in which
18 the explicit dir is unset by script after loading the page" />
19 <style>
20 input, textarea {
21 font-size:1em;
22 }
23 body {
24 font-size:2em;
25 }
26 .test, .ref {
27 border: medium solid gray;
28 width: 400px;
29 margin: 20px;
30 }
31 .comments {
32 display: none;
33 }
34 </style>
35 </head>
36 <body>
37 <div class="instructions"><p>Test passes if the two boxes below look exactly the same.</p></div>
38 <div class="comments">
39 Key to entities used below:
40 א - The Hebrew letter Alef (strongly RTL).
41 ב - The Hebrew letter Bet (strongly RTL).
42 ג - The Hebrew letter Gimel (strongly RTL).
43 </div>
44 <div class="test">
45 <div dir="ltr">
46 <div dir="ltr"><p id="p1" dir="ltr">DEF</p>אבגABC.</div>
47 </div>
48 <div dir="rtl">
49 <div dir="ltr"><p id="p2" dir="ltr">DEF</p>אבגABC.</div>
50 </div>
51 </div>
52 <div class="ref">
53 <div dir="ltr">
54 <div dir="ltr"><p dir="ltr">DEF</p>אבגABC.</div>
55 </div>
56 <div dir="rtl">
57 <div dir="ltr"><p dir="ltr">DEF</p>אבגABC.</div>
58 </div>
59 </div>
60 </body>
61 </html>