summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select/select-align.html
blob: e6b0cded27f71a02b5aea3ccd117fcab1cea2d5e (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
35
36
37
38
39
40
<html>
<head>
    <title>Align in select test</title>
    <style type="text/css">
        select { width: 300px; }
    </style>
</head>
<body>
    <p>The following select elements should all be rendered on the left, with their text left justified.</p>
    <select align="right"><option>This is should be left justified.</option></select>
    <br>
    <select align="left"><option>This is should be left justified.</select>
    <br>
    <select align="center"><option>This is should be left justified.</option></select>
    <br>
    <select><option>This is should be left justified.</option></select>
    <br>

    <select id="test1"><option>This is should be left justified.</option></select>
    <script>
    <!--
        var obj1 = document.getElementById('test1');
        obj1.setAttribute('align', 'right');
    -->
    </script>

    <div id='insertionpoint'></div>
    <script>
    <!--
        var ins = document.getElementById('insertionpoint');
        var obj2 = document.createElement('SELECT');
        obj2.setAttribute('align', 'right');
        var option = document.createElement('OPTION');
        option.appendChild(document.createTextNode('This is should be left justified.'));
        obj2.appendChild(option);
        ins.appendChild(obj2);
    //-->
    </script>
</body>
</html>