1 <!-- Based on fast/repaint/fixed-under-composited-fixed-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
.display
= 'none';
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();
28 background-color: green;
29 backface-visibility: hidden;
37 background-color: red;
40 Tests paint invalidation of fixed elements under a composited fixed element after scrolled.
41 Passes if there is only green background.
42 <div id=
"fixed-container">
43 <div id=
"fixed"></div>