summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/replaced-elements/embedded-content/tall-cross-domain-iframe-in-scrolled.sub.html
blob: 865be7c883cdf0506a64ec82a121a91188e72fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html class="reftest-wait">
<title>Rendering of tall cross-domain iframe element in a scrolled window</title>
<link rel="match" href="tall-cross-domain-iframe-in-scrolled.sub-ref.html">
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules">
<meta name="assert" content="Checks that tall cross-domain iframe in a scrolled window is correctly rendered">
<iframe id=myframe style="width: 300px; height: 1000px"
    src="http://{{domains[www1]}}:{{ports[http][0]}}/html/rendering/replaced-elements/embedded-content/resources/tall.html"></iframe>
<div style="height: 2000px"></div>
<script>
  window.scrollTo(0, 700);
  myframe.onload = () => {
    requestAnimationFrame(() => {
      requestAnimationFrame(() => {
        document.documentElement.classList.remove('reftest-wait');
      });
    });
  }
</script>
</html>