<!DOCTYPE html>
<html>
<head>
<script src="../resources/text-based-repaint.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);
function repaintTest() {
window.scrollTo(0, 100);
}
</script>
</head>
<body style="height:2000px" onload="runRepaintAndPixelTest()">
<div class="main"></div>
<div class="squahed"></div>
</body>
</html>