summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1384824-1.html
blob: 6dcf485f0ec4ee0daa17587856de49db82741067 (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 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() {
      getComputedStyle(e).minHeight;
      div.style.display = 'none';
      setTimeout(function() {
        getComputedStyle(e).minHeight;
        document.documentElement.className = "";
      }, 0);
    }, 0);
  };
</script>