| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| #d { |
| position: absolute; |
| top: 50px; |
| left: 10px; |
| } |
| </style> |
| </head> |
| <body> |
| <p> Bug webkit.org/b/112052: A positioned block with auto width should resize when moved left or right. There should be no horizontal scrollbars below.</p> |
| <div id="d"> |
| Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah Blah blah blah blah |
| </div> |
| <script type='text/javascript'> |
| document.body.offsetHeight; |
| var d = document.getElementById("d"); |
| d.style.left = "200px"; |
| </script> |
| </body> |
| </html> |
| |
| |