46 lines
911 B
HTML
46 lines
911 B
HTML
<html dir="rtl">
|
|
<head>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
.wide {
|
|
width: 2000px;
|
|
height: 10px;
|
|
background-color: silver;
|
|
}
|
|
.origin {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 10px;
|
|
height: 10px;
|
|
background-color: blue;
|
|
}
|
|
|
|
#lefty {
|
|
position: absolute;
|
|
left: -200px;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: orange;
|
|
}
|
|
</style>
|
|
<script>
|
|
function runTest()
|
|
{
|
|
document.scrollingElement.scrollLeft = -200;
|
|
}
|
|
|
|
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>
|