| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <style> |
| 3 #container { |
| 4 position: relative; |
| 5 } |
| 6 .img { |
| 7 position: absolute; |
| 8 background-color: green; |
| 9 height: 10px; |
| 10 width: 10px; |
| 11 top: 0; |
| 12 } |
| 13 </style> |
| 14 <div id="container"> |
| 15 <input type="text" id="leading"></input> |
| 16 <input type="text"></input> |
| 17 <img class="img" id="img"> |
| 18 </div> |
| 19 crbug.com/498290: Tests positioned movement layout when it has a non-static bloc
k position and sits in a line. The green image should be beside the input box. |
| 20 <script> |
| 21 document.body.offsetTop; |
| 22 leading = document.getElementById("leading"); |
| 23 leading.setAttribute('type', 'hidden'); |
| 24 document.body.offsetTop; |
| 25 </script> |
| OLD | NEW |