| <!DOCTYPE HTML> |
| <style> |
| #container { |
| position: relative; |
| } |
| .img { |
| position: absolute; |
| background-color: green; |
| height: 10px; |
| width: 10px; |
| top: 0; |
| } |
| </style> |
| <div id="container"> |
| <input type="text" id="leading"></input> |
| <input type="text"></input> |
| <img class="img" id="img"> |
| </div> |
| crbug.com/498290: Tests positioned movement layout when it has a non-static block position and sits in a line. The green image should be beside the input box. |
| <script> |
| document.body.offsetTop; |
| leading = document.getElementById("leading"); |
| leading.setAttribute('type', 'hidden'); |
| document.body.offsetTop; |
| </script> |