summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/select_alignment.html
blob: 7c1bc0e3d614925a3219f804f379e48b28b520e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test drop-down item's alignment in <select>/<option></title>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8">
</head>
<body>
<p>
select drop-down items' alignment should be determined by the directionality of
&lt;select&gt; tag.
<p>
The drop-down items in the following &lt;select&gt; should be left-aligned.
<br>
<select>
<option>abc def</option>
<option>שנב גקכ</option>
<option dir="rtl">abc שנב def</option>
<option dir="ltr">שנב abc גקכ</option>
<option dir="rtl">hi!</option>
<option dir="ltr">hi!</option>
</select>
<br>
The drop-down items in the second &lt;select&gt; should be right-aligned.
<p>
<select dir="rtl">
<option>abc def</option>
<option>שנב גקכ</option>
<option dir="rtl">abc שנב def</option>
<option dir="ltr">שנב abc גקכ</option>
<option dir="rtl">hi!</option>
<option dir="ltr">hi!</option>
</select>
</body>
</html>