<script src="../resources/text-based-repaint.js"></script>
<body onload="runRepaintAndPixelTest()">
<div id="target" style="width: 100px; height: 100px; white-space:pre; overflow: hidden;"> FAIL .</div>
<script>
var target = document.getElementById("target");
target.scrollLeft = 100;
function repaintTest()
{
target.firstChild.data = " PASS .";
}
</script>