blob: c0cfa21ebe0a075c02b242422cb2c5c02c93d6cd [file] [log] [blame]
<!-- Based on compositing/overflow/scrolling-without-painting.html -->
<!DOCTYPE html>
This test checks that accelerated scrolling layers can be scrolled without
repainting their contents. See
<style type="text/css">
#scroller {
overflow: scroll;
-webkit-overflow-scrolling: touch;
width: 200px;
height: 200px;
border: solid thin blue;
#content {
height: 1000px;
margin-top: 25px;
<script src="resources/paint-invalidation-test.js"></script>
<script type="text/javascript">
if (window.testRunner)
if (window.internals)
function paintInvalidationTest() {
// Scroll down. This should not cause any more repaints to the
// scrolling contents.
document.getElementById('scroller').scrollTop = 25;
<div id="scroller">
<div id="content"></div>