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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/spv2/do-not-paint-below-image-baseline.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/images/do-not-paint-below-image-baseline.html --> 1 <!-- Based on fast/images/do-not-paint-below-image-baseline.html -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="resources/paint-invalidation-test.js"></script> 5 <script src="resources/paint-invalidation-test.js"></script>
6 <script> 6 <script>
7 window.expectedPaintInvalidationObjects = [
8 "LayoutImage IMG",
9 ];
10 function paintInvalidationTest() 7 function paintInvalidationTest()
11 { 8 {
12 var things = document.getElementsByClassName("before"); 9 var things = document.getElementsByClassName("before");
13 while (things.length) 10 while (things.length)
14 things[0].classList.remove("before"); 11 things[0].classList.remove("before");
15 } 12 }
16 </script> 13 </script>
17 <style> 14 <style>
18 img { 15 img {
19 margin: 50px; 16 margin: 50px;
20 } 17 }
21 body { 18 body {
22 margin: 0px; 19 margin: 0px;
23 } 20 }
24 .before { 21 .before {
25 background-color: green; 22 background-color: green;
26 } 23 }
27 </style> 24 </style>
28 </head> 25 </head>
29 <body onload="runPaintInvalidationTest()"> 26 <body onload="runPaintInvalidationTest()">
30 <img class="before" src="../../../fast/images/resources/59.jpg"> 27 <img class="before" src="../../../fast/images/resources/59.jpg">
31 <p> When painting an inline image, do not paint below its baseline unless it s selected. 28 <p> When painting an inline image, do not paint below its baseline unless it s selected.
32 The invalidation rect should not extend outside the content rect of the image. </p> 29 The invalidation rect should not extend outside the content rect of the image. </p>
33 </body> 30 </body>
34 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698