summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/img-layer-grow.html
blob: 6333b1d1222c461f4179e5c0b8f1e626fb9de78e (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
31
32
<!DOCTYPE HTML>
<html>
<head>
<script src="../resources/run-after-layout-and-paint.js"></script>
<script src="resources/mock_scrollbars.js"></script>
<script type="text/javascript" charset="utf-8">

  if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsTextWithPixelResults(); // This is only useful as a pixel test.
  }

  function doTest()
  {
    div = document.getElementById("div");
    runAfterLayoutAndPaint(function() {
      div.style.height = "1600px";
      if (window.testRunner)
        testRunner.notifyDone();
    });
  }

  window.addEventListener('load', doTest, false);
</script>

</head>
<body>
  <div id="div">
    <img id="image" src="resources/apple.jpg" style="transform: translateZ(0);">
  </div>
</body>
</html>