OLD | NEW |
1 <!-- Based on fast/repaint/percent-size-image-resize-container.html --> | 1 <!-- Based on fast/repaint/percent-size-image-resize-container.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 if (window.testRunner) | |
6 testRunner.dumpAsText(); | |
7 | |
8 window.expectedPaintInvalidationObjects = [ | |
9 "LayoutBlockFlow (positioned) DIV", | |
10 "LayoutImage (positioned) IMG", | |
11 ]; | |
12 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
13 var div = document.getElementsByTagName('div')[0]; | 6 var div = document.getElementsByTagName('div')[0]; |
14 div.style.width = '100px'; | 7 div.style.width = '100px'; |
15 div.style.height = '200px'; | 8 div.style.height = '200px'; |
16 } | 9 } |
17 onload = runPaintInvalidationTest; | 10 onload = runPaintInvalidationTest; |
18 </script> | 11 </script> |
19 <style> | 12 <style> |
20 div { | 13 div { |
21 position: absolute; | 14 position: absolute; |
22 top: 50px; | 15 top: 50px; |
23 left: 0px; | 16 left: 0px; |
24 width: 150px; | 17 width: 150px; |
25 height: 150px; | 18 height: 150px; |
26 } | 19 } |
27 img { | 20 img { |
28 position: absolute; | 21 position: absolute; |
29 width: 100%; | 22 width: 100%; |
30 height: 100%; | 23 height: 100%; |
31 } | 24 } |
32 </style> | 25 </style> |
33 The percent-sized image should be fully repainted on container's resize. Passes
if there is a whole apple after resize. | 26 The percent-sized image should be fully repainted on container's resize. Passes
if there is a whole apple after resize. |
34 <div> | 27 <div> |
35 <img src="../../../fast/repaint/resources/apple.jpg"> | 28 <img src="../../../fast/repaint/resources/apple.jpg"> |
36 </div> | 29 </div> |
OLD | NEW |