1 <!-- Based on fast/repaint/layer-visibility.html -->
4 <script src=
"resources/paint-invalidation-test.js"></script>
8 document
.body
.offsetTop
;
9 var target
= document
.getElementById("target");
10 target
.style
.visibility
= "visible";
11 document
.body
.offsetTop
;
13 runPaintInvalidationTest();
16 window
.expectedPaintInvalidationObjects
= [
17 "LayoutBlockFlow (positioned) DIV id='target'",
19 function paintInvalidationTest()
21 var target
= document
.getElementById("target");
22 target
.style
.left
= "0";
23 target
.style
.backgroundColor
= "green";
27 <body onload=
"test()">
28 <div id=
"target" style=
"position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red; visibility: hidden;"></div>