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