1 <!-- Based on fast/repaint/layer-hide-when-needs-layout.html -->
4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=
13544</title>
5 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
6 <script type=
"text/javascript">
7 window
.expectedPaintInvalidationObjects
= [
8 "LayoutBlockFlow (positioned) DIV id='target'",
10 function paintInvalidationTest()
12 var div
= document
.getElementById("target");
13 div
.style
.visibility
= 'hidden';
14 // Now make this a layout hint to avoid the repaint done in setStyle().
15 div
.style
.width
= '50px';
19 <body onload=
"runPaintInvalidationTest()">
20 <div style=
"position: relative;">
21 <div style=
"background: green; width: 100px; height: 100px;">
23 <div id=
"target" style=
"position: absolute; top: 0; width: 100px; height: 100px; background: red;">