OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta charset="utf-8" /> | |
5 <title>HTML Test: input with dir=auto, all N+EN</title> | |
6 <link rel="match" href="dir_auto-input-N-EN-ref.html" /> | |
7 <link rel="author" title="Matitiahu Allouche" href="mailto:matitiahu.allouch
e@google.com" /> | |
8 <link rel="author" title="Oren Roth" href="mailto:oren.roth@gmail.com" /> | |
9 <link rel="author" title="Shai Berger" href="mailto:shai@platonix.com" /> | |
10 <link rel="author" title="HTML5 bidi test WG" href="mailto:html5bidi@googleg
roups.com" /> | |
11 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-dir-attri
bute" /> | |
12 <meta name="assert" content=" | |
13 When dir='auto', the direction of an input element is set according to | |
14 the first strong character of its value, or to LTR if there is no such | |
15 character. | |
16 In this test, there is no strongly directional character in the value, | |
17 thus the direction must be resolved as LTR." /> | |
18 <style> | |
19 input, textarea { | |
20 font-size:1em; | |
21 } | |
22 body { | |
23 font-size:2em; | |
24 } | |
25 .test, .ref { | |
26 border: medium solid gray; | |
27 width: 400px; | |
28 margin: 20px; | |
29 } | |
30 .comments { | |
31 display: none; | |
32 } | |
33 </style> | |
34 </head> | |
35 <body> | |
36 <div class="instructions"><p>Test passes if the two boxes below look exactly
the same.</p></div> | |
37 <div class="test"> | |
38 <div dir="ltr"> | |
39 <input type="text" dir="ltr" value="@123!" /> | |
40 </div> | |
41 <div dir="rtl"> | |
42 <input type="text" dir="ltr" value="@123!" /> | |
43 </div> | |
44 </div> | |
45 <div class="ref"> | |
46 <div dir="ltr"> | |
47 <input type="text" dir="ltr" value="@123!" /> | |
48 </div> | |
49 <div dir="rtl"> | |
50 <input type="text" dir="ltr" value="@123!" /> | |
51 </div> | |
52 </div> | |
53 </body> | |
54 </html> | |
OLD | NEW |