blob: e586fad8d0db9706e6c378a705b2c526920ab454 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
p { height: 100px; width: 100px; margin: 0px; }
p.red { background-color: red; }
p.green { background-color: green; }
div { height: 100px; width: 100px; }
div.relative { position: relative }
div.rotated
{
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
transform: rotate(360deg);
}
div.translated
{
-webkit-transform: translate(0);
-moz-transform: translate(0);
transform: translate(0);
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText(true);
</script>
</head>
<body>
<!-- This test should be a ref-test but small scrollbars difference between platforms makes it fail. -->
<span>http://webkit.org/b/67100: REGRESSION (r93614): Safari Reader doesn't repaint correctly when scrolling</span><br/>
<span>All the boxes should only contain green content.</span>
<!-- Use a translation. -->
<div class="scrollMe translated" style="overflow: hidden;">
<div class="relative">
<p class="red"></p>
<p class="green"></p>
<p class="red"></p>
</div>
</div>
<br>
<div class="scrollMe translated" style="overflow: scroll;">
<div class="relative">
<p class="red"></p>
<p class="green"></p>
<p class="red"></p>
</div>
</div>
<br>
<!-- Use a rotation. -->
<div class="scrollMe rotated" style="overflow: hidden;">
<div class="relative">
<p class="red"></p>
<p class="green"></p>
<p class="red"></p>
</div>
</div>
<br>
<div class="scrollMe rotated" style="overflow: scroll;">
<div class="relative">
<p class="red"></p>
<p class="green"></p>
<p class="red"></p>
</div>
</div>
<br>
<script>
var scrollMes = document.getElementsByClassName("scrollMe");
for (var i = 0; i < scrollMes.length; ++i)
scrollMes[i].scrollTop = 100;
</script>
</body>
</html>