Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / fixed-img-src-change-after-scroll.html
blob402688cc3597d8b3bdbcd07197542c6a5218a8d9
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 window.expectedPaintInvalidationObjects = [
6 "LayoutImage (positioned) IMG id='img'",
7 ];
8 function paintInvalidationTest() {
9 window.scrollTo(0, 1000);
10 document.getElementById('img').src = '../../../fast/images/resources/green.jpg';
12 onload = runPaintInvalidationTest;
13 </script>
14 <body style="height: 2000px">
15 Checks correct paint invalidation on image src change after a pending scroll.
16 Passes if there is no assert failure about pending scroll offsets in a debug build
17 (http://crbug.com/434950), and both the old location and new location of the img are
18 correctly invalidated.
19 <img id='img' style="width: 100px; height: 100px; position: fixed; top: 50px; left: 0">
20 </body>