2 <script src="resources/text-based-repaint.js"></script>
4 function repaintTest() {
5 document.getElementById('fixed').style.display = 'none';
8 // Scroll before repaint test to test correct scroll offset of invalidation rect
9 // for fixed-position element when it needs repaint.
10 window.scrollTo(0, 400);
24 background-color: green;
25 backface-visibility: hidden;
33 background-color: red;
36 Tests paint invalidation of fixed elements under a composited fixed element after scrolled.
37 Passes if there is only green background.
38 <div id="fixed-container">
39 <div id="fixed"></div>