summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-align.html
blob: b159ab9f2b74fc4148a86665ce02656f1d0bdeab (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
<html>
<head>
    <title>Align in textarea Test</title>
</head>
<body>
    <p>The following textarea elements should all be rendered on the left, with their text aligned to the left.</p>
    <textarea align="right" cols="50">This is should be aligned to the left.</textarea>
    <br>
    <textarea align="left" cols="50">This is should be aligned to the left.</textarea>
    <br>
    <textarea cols="50">This is should be aligned to the left.</textarea>

    <br>
    <textarea cols="50" id="test1">This is should be aligned to the left.</textarea>
    <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('TEXTAREA');
        obj2.setAttribute('align', 'right');
        obj2.setAttribute('cols', '50');
        obj2.appendChild(document.createTextNode('This is should be aligned to the left.'));
        ins.appendChild(obj2);
    //-->
    </script>
</body>
</html>