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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/do-not-paint-below-image-baseline.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/text-based-repaint.js"></script> 4 <script src="resources/text-based-repaint.js"></script>
5 <script> 5 <script>
6 function repaintTest() 6 function repaintTest()
7 { 7 {
8 var things = document.getElementsByClassName("before"); 8 var things = document.getElementsByClassName("before");
9 while (things.length) 9 while (things.length)
10 things[0].classList.remove("before"); 10 things[0].classList.remove("before");
11 } 11 }
12 </script> 12 </script>
13 <style> 13 <style>
14 img { 14 img {
15 margin: 50px; 15 margin: 50px;
16 } 16 }
17 body { 17 body {
18 margin: 0px; 18 margin: 0px;
19 } 19 }
20 .before { 20 .before {
21 background-color: green; 21 background-color: green;
22 } 22 }
23 </style> 23 </style>
24 </head> 24 </head>
25 <body onload="runRepaintAndPixelTest()"> 25 <body onload="runRepaintAndPixelTest()">
26 <img class="before" src="../../fast/images/resources/59.jpg"> 26 <img class="before" src="../../images/resources/59.jpg">
27 <p> When painting an inline image, do not paint below its baseline unless it s selected. 27 <p> When painting an inline image, do not paint below its baseline unless it s selected.
28 The invalidation rect should not extend outside the content rect of the image. </p> 28 The invalidation rect should not extend outside the content rect of the image. </p>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698