Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / images / do-not-paint-below-image-baseline.html
blob291d5c106298dcf9772bc665f91a82dfccb7d1cf
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../repaint/resources/text-based-repaint.js"></script>
5 <script>
6 function repaintTest()
8 var things = document.getElementsByClassName("before");
9 while (things.length)
10 things[0].classList.remove("before");
12 </script>
13 <style>
14 img {
15 margin: 50px;
17 body {
18 margin: 0px;
20 .before {
21 background-color: green;
23 </style>
24 </head>
25 <body onload="runRepaintTest()">
26 <img class="before" src="resources/59.jpg">
27 <p> When painting an inline image, do not paint below its baseline unless its selected.
28 The invalidation rect should not extend outside the content rect of the image. </p>
29 </body>
30 </html>