Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / text / text-padding-dynamic-change.html
blobc04e838555cbdd8bd5a3af0c39dcbeb43adc79d6
1 <!DOCTYPE html>
2 <body>
3 <input id=text1 style="box-sizing:border-box; width:100px; text-align:right;" value="Hello world">
4 <input id=text2 style="box-sizing:border-box; width:100px; text-align:right;" placeholder="Hello world">
5 <input id=text3 style="box-sizing:border-box; width:100px; text-align:right;" value="Hello world">
6 <input id=text4 style="box-sizing:border-box; width:100px; text-align:right;" placeholder="Hello world">
7 <script>
8 document.body.offsetLeft;
9 document.getElementById('text1').style.paddingLeft = '40px';
10 document.getElementById('text2').style.paddingLeft = '40px';
11 document.getElementById('text3').style.borderLeftWidth = '40px';
12 document.getElementById('text4').style.borderLeftWidth = '40px';
13 </script>
14 </body>