summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/percent-minheight-resize.html
blob: da9c2117692ef7192cbc0c6ed3b2ff9b03e20bf5 (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
<!DOCTYPE html>
<html>
<head>
  <title>Test for http://bugs.webkit.org/show_bug.cgi?id=79490</title>
  <script src="../../resources/run-after-layout-and-paint.js"></script>
  <script>
    if (window.testRunner) {
        testRunner.waitUntilDone();
    }
    function repaintTest()
    {
      document.getElementById('resize-target').style.height = '200px';
      if (window.testRunner)
          testRunner.notifyDone();
    }
  </script>
</head>

<body style="margin: 0; padding: 0; overflow: hidden;" onload="runAfterLayoutAndPaint(repaintTest);">
  <div id="resize-target" style="width: 400px; height: 400px; position: absolute;">
    <!-- After window resizing, this DIV element should not be visible -->
    <div style="width: 100px; min-height: 50%; background-color: red; display: inline-block;"></div>
  </div>

  <div style="width: 100px; height: 100px; background-color: green; position: absolute;"></div>
</body>
</html>