<!DOCTYPE html> | |
<script src="../resources/text-based-repaint.js"></script> | |
<div id="target" style="position: relative; width: 100px; height: 100px; will-change: transform; background: green"> | |
</div> | |
<script> | |
function repaintTest() { | |
target.style.left = '200px'; | |
} | |
onload = runRepaintAndPixelTest; | |
</script> |