<!DOCTYPE HTML> | |
<script src="../resources/text-based-repaint.js"></script> | |
<script> | |
function repaintTest() | |
{ | |
// Changing outline will cause a repaint but no layout. | |
document.getElementById("test").style['outline'] = 'solid black 10px'; | |
} | |
window.onload = runRepaintAndPixelTest; | |
</script> | |
<style> | |
body { | |
margin: 0; | |
} | |
</style> | |
<div id="test" style="background-color: green; width: 100px; height: 100px; outline: solid black 5px;"></div> | |
<!-- Tests the repainting of outline when changed. --> |