Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / button-align.html
blob910b5c70099bbef4bcca2892db7a4feb848ca90c
1 <html>
2 <head>
3 <title>Align in button Test</title>
4 <style type="text/css">
5 button { width: 300px; }
6 </style>
7 </head>
8 <body>
9 <p>The following button elements should all be rendered on the left, with their text center justified.</p>
10 <button align="right">This is should be center justified.</button>
11 <br>
12 <button align="left">This is should be center justified.</button>
13 <br>
14 <button>This is should be center justified.</button>
15 <br>
17 <button id="test1">This is should be center justified.</button>
18 <script>
19 <!--
20 var obj1 = document.getElementById('test1');
21 obj1.setAttribute('align', 'right');
22 -->
23 </script>
25 <div id='insertionpoint'></div>
26 <script>
27 <!--
28 var ins = document.getElementById('insertionpoint');
29 var obj2 = document.createElement('BUTTON');
30 obj2.setAttribute('align', 'right');
31 obj2.appendChild(document.createTextNode('This is should be center justified.'));
32 ins.appendChild(obj2);
33 //-->
34 </script>
35 </body>
36 </html>