OLD | NEW |
| (Empty) |
1 <!-- Based on fast/images/fixed-img-src-change-after-scroll.html --> | |
2 <!DOCTYPE html> | |
3 <script src="resources/paint-invalidation-test.js"></script> | |
4 <script> | |
5 function paintInvalidationTest() { | |
6 window.scrollTo(0, 1000); | |
7 document.getElementById('img').src = '../../../fast/images/resources/green.jpg
'; | |
8 } | |
9 onload = runPaintInvalidationTest; | |
10 </script> | |
11 <body style="height: 2000px"> | |
12 Checks correct paint invalidation on image src change after a pending scroll. | |
13 Passes if there is no assert failure about pending scroll offsets in a debug bui
ld | |
14 (http://crbug.com/434950), and both the old location and new location of the img
are | |
15 correctly invalidated. | |
16 <img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px;
left: 0"> | |
17 </body> | |
OLD | NEW |