blob: aa0cfa296b5c84d36bdcf63ddb0f1192b8cc5002 [file] [log] [blame]
<!-- Based on fast/repaint/margin.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='target'",
];
function paintInvalidationTest()
{
// 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 = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
div {
width: 100px;
height: 100px;
position: absolute;
background-color: green;
}
</style>
<div id="target"></div>