blob: c12258f02ed33f9a8f31c742d635b681c87f37e7 [file] [log] [blame]
<html>
<head>
<style>
body {
margin: 0;
}
.wide {
width: 2000px;
height: 10px;
background-color: silver;
}
.origin {
position: absolute;
top: 0;
left: 1200px;
width: 10px;
height: 10px;
background-color: blue;
}
#lefty {
position: absolute;
left: 1000px;
width: 100px;
height: 100px;
background-color: orange;
}
</style>
<script>
function runTest()
{
document.scrollingElement.scrollLeft = 1000;
}
window.addEventListener('load', runTest, false);
</script>
</head>
<body>
<div class="wide"></div>
<div class="origin"></div>
<div id="lefty"></div>
<div id="result">
</div>
</body>
</html>