blob: b36ab96d7ce7c77a71df1682de16d626e4d1b2a4 [file] [log] [blame]
<!-- Based on fast/repaint/layer-hide-when-needs-layout.html -->
<title>Test for</title>
<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script type="text/javascript">
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='target'",
function paintInvalidationTest()
var div = document.getElementById("target"); = 'hidden';
// Now make this a layout hint to avoid the repaint done in setStyle(). = '50px';
<body onload="runPaintInvalidationTest()">
<div style="position: relative;">
<div style="background: green; width: 100px; height: 100px;">
<div id="target" style="position: absolute; top: 0; width: 100px; height: 100px; background: red;">