Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8" />
5 <title>HTML Test: dir=auto, start with dir, then L</title>
6 <link rel="reference" href="dir_auto-contained-dir-L-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 Hebrew letter Dalet, thus the direction must be
16 resolved as RTL.
17 This is a variation of the original dir_auto-contained-dir-L.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 ד - The Hebrew letter Dalet (strongly RTL).
44 ה - The Hebrew letter He (strongly RTL).
45 ו - The Hebrew letter Vav (strongly RTL).
46 </div>
47 <div class="test">
48 <div dir="ltr">
49 <div dir="rtl"><p id="p1" dir="rtl">דהו</p>ABCאבג.</div>
50 </div>
51 <div dir="rtl">
52 <div dir="rtl"><p id="p2" dir="rtl">דהו</p>ABCאבג.</div>
53 </div>
54 </div>
55 <div class="ref">
56 <div dir="ltr">
57 <div dir="rtl"><p dir="rtl">דהו</p>ABCאבג.</div>
58 </div>
59 <div dir="rtl">
60 <div dir="rtl"><p dir="rtl">דהו</p>ABCאבג.</div>
61 </div>
62 </div>
63 </body>
64 </html>