blob: 4e08cbb534e053eced7ead6bb6391740816ef888 [file] [log] [blame]
<!-- Based on fast/repaint/inline-block-resize.html -->
<html>
<head>
<title>Test for http://bugs.webkit.org/show_bug.cgi?id=12885</title>
<style type="text/css">
</style>
<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script>
window.expectedPaintInvalidationObjects = [
"RootInlineBox",
"InlineBox",
"LayoutBlockFlow (positioned) DIV",
"LayoutBlockFlow DIV id='target'",
];
function paintInvalidationTest()
{
document.getElementById('target').style.width = '100px';
document.getElementById('target').style.height = '100px';
document.getElementById('target').style.marginTop = '-100px';
}
</script>
</head>
<body onload="runPaintInvalidationTest();">
<div style="position:absolute; height:100px; width:100px;background-color:red"></div>
<div style="padding-top:100px"></div>
<div style="position:absolute"><div id="target" style="display:inline-block; background-color:green"></div></div>
</div>
</body>
</html>