<!DOCTYPE html> | |
<script src="resources/text-based-repaint.js"></script> | |
<script> | |
function repaintTest() | |
{ | |
document.getElementById('target1').style.width = '200px'; | |
document.getElementById('target2').style.height = '200px'; | |
} | |
window.onload = runRepaintTest; | |
</script> | |
<style> | |
body { | |
margin: 0; | |
} | |
div { | |
width: 100px; | |
height: 100px; | |
background-color: green; | |
border-radius: 10px 15px 20px 25px; | |
position: absolute; | |
} | |
</style> | |
<div id="target1" style="top: 0px"></div> | |
<div id="target2" style="top: 200px"></div> |