1 <!-- Based on fast/repaint/fixed-under-composited-absolute-scrolled.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
5 window
.expectedPaintInvalidationObjects
= [
6 "LayoutBlockFlow (positioned) DIV id='fixed'",
8 function paintInvalidationTest() {
9 document
.getElementById('fixed').style
.height
= '200px';
12 // Scroll before repaint test to test correct scroll offset of invalidation rect
13 // for fixed-position element when it needs repaint.
14 window
.scrollTo(0, 400);
15 runPaintInvalidationTest();
25 background-color: red;
32 background-color: red;
33 backface-visibility: hidden;
42 background-color: green;
45 Tests paint invalidation of fixed element under a composited absolute element on resize after scrolled.
46 Passes if there is a
100x200 green rectangle and no red.
47 <div id=
"indicator"></div>