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