<!doctype html> | |
<script src="resources/text-based-repaint.js"></script> | |
<script> | |
function repaintTest() | |
{ | |
document.getElementById('element').style.width = '0'; | |
document.getElementById('element').style.height = '0'; | |
} | |
onload = runRepaintAndPixelTest; | |
</script> | |
<style> | |
#element { | |
width: 200px; | |
height: 200px; | |
background-color: red; | |
} | |
#inner { | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
<div id='element'> | |
<div id='inner'></div> | |
</div> |