1 <!-- Based on fast/repaint/scroll-fixed-layer-with-no-visible-content.html -->
5 <link rel=
"stylesheet" href=
"../../../fast/repaint/resources/default.css"></style>
6 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
7 <script type=
"text/javascript">
8 window
.onload = function() {
9 window
.scrollTo(1000, 1000);
10 runPaintInvalidationTest();
13 window
.expectedPaintInvalidationObjects
= [
14 "LayoutBlockFlow (positioned) DIV id='moveMe' class='fixed clipped'",
15 "LayoutBlockFlow (positioned) DIV class='absolute green'",
17 function paintInvalidationTest()
19 var moveMeElement
= document
.getElementById('moveMe');
20 moveMeElement
.style
.visibility
= "visible";
21 moveMeElement
.scrollTop
= 100;
22 moveMeElement
.scrollLeft
= 150;
26 <body style=
"height:2000px;">
27 <!-- You should see 1 green rectangle in the output and no red. -->
28 <div id=
"moveMe" style=
"top: 150px; left: 100px; visibility: hidden" class=
"fixed clipped"><div class=
"absolute green" style=
"top: 100px; left: 150px;"></div></div>
29 <!-- Make sure we are scrolled -->
30 <div style=
"top: 0px; left: 0px;" class=
"absolute red"></div>