<!DOCTYPE HTML> | |
<script src="resources/text-based-repaint.js"></script> | |
<script> | |
function repaintTest() | |
{ | |
document.getElementById('target').style.verticalAlign = 'middle'; | |
} | |
window.onload = runRepaintAndPixelTest; | |
</script> | |
<style> | |
body { | |
margin: 0; | |
} | |
.other { | |
width: 200px; | |
height: 200px; | |
background-color: blue; | |
display: inline-block; | |
} | |
#target { | |
width: 100px; | |
height: 100px; | |
background-color: green; | |
display: inline-block; | |
} | |
</style> | |
<div class="other"></div><div id="target"></div><div class="other"></div> |