blob: b42485f33c9fb698f3e698fb0b1dfae6ae2b45d7 [file] [log] [blame]
<!-- Based on compositing/overflow/updating-scrolling-container-and-content.html -->
<!DOCTYPE html>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest() {
document.getElementById('container').style.color = "green";
}
onload = function() {
document.getElementById('container').scrollTop = 50;
runPaintInvalidationTest();
};
</script>
<style>
#container {
overflow: scroll;
width: 200px;
height: 200px;
}
</style>
<div style="height: 100px">
Tests invalidation of scrolling container and contents on change of style which affects also the contents.
Passes if the content text is green, and the whole content layer (if composited scrolling) is invalidated.
</div>
<div id="container">
CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT
</div>