<!DOCTYPE html> | |
<script src="../../../resources/ahem.js"></script> | |
<script src="../resources/text-based-repaint.js"></script> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
#container { | |
position: absolute; | |
width: 255px; | |
text-align: right; | |
font: 10px Ahem; | |
} | |
#container > span { | |
outline: 5px solid blue; | |
} | |
</style> | |
<div id=container> | |
<span>Test</span> | |
</div> | |
<script> | |
function repaintTest() { | |
document.getElementById('container').style.color = 'green'; | |
} | |
onload = runRepaintAndPixelTest; | |
</script> |