Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / positioning / static-inline-position-dynamic.html
blob29fb230512d62e0e61745a597a56c7d4b24ed979
1 <html>
2 <head>
3 <script>
4 function runTest()
6 document.body.offsetLeft;
7 document.getElementById('target').style.paddingLeft = '400px';
8 document.body.offsetLeft;
9 document.getElementById('positioned').style.left = '';
10 document.getElementById('positioned').style.width = '200px';
12 </script>
13 </head>
14 <body onload="runTest()">
15 <div style="position:absolute;left:400px;top:0px;width:100px;height:100px;background-color:red"></div>
16 <div style="position:absolute;left:0;top:0">
17 <div style="padding-left:100px" id="target"><div id="positioned" style="position:absolute;top:0;left:0;width:100px;height:100px;background-color:green"></div>
18 </div>
19 </div>