Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / image-resize.html
blobdfc9efd58554f6fd7aa12fa046f74e56c8359a37
1 <!-- Based on fast/repaint/image-resize.html -->
2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 window.expectedPaintInvalidationObjects = [
8 "LayoutImage (positioned) IMG",
9 ];
10 function paintInvalidationTest() {
11 var img = document.getElementsByTagName('img')[0];
12 img.style.width = '100px';
13 img.style.height = '200px';
15 onload = runPaintInvalidationTest;
16 </script>
17 <style>
18 img {
19 position: absolute;
20 top: 50px;
21 left: 0px;
22 width: 150px;
23 height: 150px;
25 </style>
26 The image should be fully repainted on resize. Passes if there is a whole apple after resize.
27 <img src="../../../fast/repaint/resources/apple.jpg">