blob: d4de491c6a55f86bdfbf9e9ee61d89e9bdcf3fce [file] [log] [blame]
<!DOCTYPE HTML>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
// Margin change will visually move the content of the div.
// Should repaint the old position and the new position.
document.getElementById('target').style.margin = '20px';
}
window.onload = runRepaintAndPixelTest;
</script>
<style>
body {
margin: 0;
}
div {
width: 100px;
height: 100px;
position: absolute;
background-color: green;
}
</style>
<div id="target"></div>