Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/percent-size-image-resize-container.html

Issue 1366763002: Text expectations of paint/invalidation/spv2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698