blob: 4b53ceb1042233a0ce1050f9b353d81ca0cffed0 [file] [log] [blame]
<!-- Based on compositing/repaint/scroll-fixed-squahed-layer.html -->
<!DOCTYPE html>
<html>
<head>
<script src="resources/paint-invalidation-test.js"></script>
<style>
.main {
position: fixed;
top: 100px;
left: 100px;
width: 200px;
height: 200px;
background-color: lightblue;
will-change: transform;
}
.squahed {
position: fixed;
top: 150px;
left: 100px;
width: 200px;
height: 200px;
background-color: lightgreen;
}
</style>
<script>
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
window.expectedPaintInvalidationObjects = [
];
function paintInvalidationTest() {
window.scrollTo(0, 100);
}
</script>
</head>
<body style="height:2000px" onload="runPaintInvalidationTest()">
<div class="main"></div>
<div class="squahed"></div>
</body>
</html>