OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/nested-fixed-iframe-scrolled.html --> | |
2 <!DOCTYPE html> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 function paintInvalidationTest() { | |
6 frames[0].frames[0].document.getElementById('div').style.backgroundColor = 'gr
een'; | |
7 } | |
8 onload = function() { | |
9 window.scrollTo(0, 400); | |
10 runPaintInvalidationTest(); | |
11 }; | |
12 </script> | |
13 <body style="height: 2000px"> | |
14 Tests paint invalidation of contents of fixed-position iframe in another ifram
e after main frame is scrolled. | |
15 Passes if there is a 100x100 green rectangle and no red in the inner-most ifra
me. | |
16 <iframe style="position: absolute; top: 500px; left: 0" srcdoc=" | |
17 <iframe style='position: fixed; top: 10px; left: 10px; width: 150px; height:
150px' | |
18 srcdoc='<div id="div" style="width: 100px; height: 100px; b
ackground-color: red"></div>'></iframe>"> | |
19 </iframe> | |
20 </body> | |
OLD | NEW |