blob: 7d697467a3a2909e5cb8ddcd473e49ef8dbbb2f1 [file] [log] [blame]
<!-- Based on fast/repaint/fixed-to-relative-position-with-absolute-child.html -->
<html>
<head>
<link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script type="text/javascript">
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='container' class='fixed blue'",
"LayoutBlockFlow (positioned) DIV class='absolute green'",
"LayoutBlockFlow (relative positioned) DIV id='container' class='fixed blue'",
"LayoutBlockFlow (positioned) DIV class='absolute green'",
"LayoutBlockFlow BODY",
"LayoutBlockFlow (relative positioned) DIV id='container' class='fixed blue'",
"LayoutBlockFlow (positioned) DIV class='absolute green'",
];
function paintInvalidationTest()
{
document.getElementById('container').style.position = 'relative';
}
</script>
</head>
<body style="height:2000px;" onload="runPaintInvalidationTest()">
<!-- You should see 2 rectangles touching on one corner in the output: a green one (top left) and a green one. -->
<div id="container" style="top: 200px;" class="fixed blue"><div style="top:100px; left:100px;" class="absolute green"></div></div>
</body>
</html>