summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1384824-2.html
blob: 65e6f29fd15f6f177271ec4d2ba284d76fdb7d2e (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
<!DOCTYPE html>
<html class="reftest-wait">
<style>
  textarea {
    min-height: 100px;
  }
</style>
<div>
  <iframe src="about:blank"></iframe>
</div>
<script>
  let div = document.querySelector('div');
  let iframe = document.querySelector('iframe');
  iframe.onload = function() {
    let doc = iframe.contentDocument;
    let e = doc.createElement('textarea');
    doc.body.appendChild(e);
    setTimeout(function() {
      var cs = getComputedStyle(e);
      cs.minHeight;
      div.style.display = 'none';
      setTimeout(function() {
        div.style.display = 'block';
        setTimeout(function() {
          cs.minHeight;
          document.documentElement.className = "";
        }, 0);
      }, 0);
    }, 0);
  };
</script>