<!DOCTYPE html> | |
<span style="position: relative; top: 100px; left: 100px; will-change: translate"> | |
<div id="float" style="float: left; position: relative; will-change: scale; top: 50px; left: 50px; width: 100px; height: 100px; background-color: red"></div> | |
</span> | |
<script src="../resources/text-based-repaint.js"></script> | |
<script> | |
function repaintTest() { | |
float.style.backgroundColor = 'green'; | |
} | |
onload = runRepaintAndPixelTest; | |
</script> | |