<!DOCTYPE html> | |
<span style="position: relative; top: 100px; left: 100px; will-change: transform"> | |
<div id="float" style="float: left; 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> | |