chromium/third_party/blink/web_tests/fast/layers/scroll-with-transform-layer.html

<!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
    {
        transform: rotate(360deg);
    }
    div.translated
    {
        transform: translate(0);
    }
</style>
</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>