1 <!-- Based on fast/repaint/fixed-and-absolute-position-scrolled.html -->
4 <link rel=
"stylesheet" href=
"../../../fast/repaint/resources/default.css">
5 <script src=
"resources/paint-invalidation-test.js" type=
"text/javascript"></script>
6 <script type=
"text/javascript">
8 testRunner
.dumpAsTextWithPixelResults();
10 window
.onload = function() {
11 window
.scrollTo(0, 500);
12 runPaintInvalidationTest();
15 window
.expectedPaintInvalidationObjects
= [
16 "LayoutView #document",
17 "LayoutBlockFlow HTML",
18 "LayoutBlockFlow DIV id='container' class='relative'",
19 "LayoutBlockFlow (positioned) DIV id='absoluteDiv' class='absolute green'",
21 function paintInvalidationTest()
23 document
.getElementById('container').style
.position
= 'static';
27 <body style=
"height:2000px;">
28 <!-- You should see 1 green rectangle in the output and no red. -->
29 <div style=
"top: 200px; left: 100px;" class=
"fixed red"></div>
30 <div id=
"container" style=
"top: 5000px;" class=
"relative"><div id=
"absoluteDiv" style=
"top: 700px; left:100px;" class=
"absolute green"></div></div>