2 <script src=
"resources/text-based-repaint.js"></script>
4 function repaintTest() {
5 frames
[0].frames
[0].document
.getElementById('div').style
.backgroundColor
= 'green';
8 // Scroll before repaint test to test correct scroll offset of invalidation rect
9 // for contents of the fixed-position inner-iframe when it needs repaint.
10 window
.scrollTo(0, 400);
11 if (window
.testRunner
)
13 // For manual testing, the background color change is triggered in the iframe content.
16 <body style=
"height: 2000px">
17 Tests paint invalidation of contents of fixed-position iframe in another iframe after main frame is scrolled.
18 Passes if there is a
100x100 green rectangle and no red in the inner-most iframe.
19 <iframe style=
"position: absolute; top: 500px; left: 0" src=
"resources/fixed-iframe.html"></iframe>