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