blob: c9936a65b6e273f2bc96b3b2c75662830fc25859 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Composited overflow scrolling for RTL</title>
<style>
.container {
width: 400px;
height: 150px;
overflow: scroll;
}
.container::-webkit-scrollbar {
width: 0;
height: 0;
}
.overflow {
display: inline-block;
width: 1000px;
position: relative;
}
.right {
width: 100px;
height: 100px;
position: absolute;
right: 0;
background-color: red;
}
.left {
width: 100px;
height: 100px;
position: absolute;
left: 0;
background-color: blue;
}
</style>
</head>
<body>
<div style="transform:translateZ(0);">
This test succeeds if the two blocks correctly show content scrolled to the rightmost and leftmost respectively.
</div>
<div class="container" id="first">
<div class="overflow">
<div class="left"></div>
<div class="right"></div>
</div>
</div>
<div class="container">
<div class="overflow">
<div class="left"></div>
<div class="right"></div>
</div>
</div>
<script>
document.getElementById('first').scrollLeft = 600;
</script>
</body>
</html>