summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-embed-element/embed-document-under-content-visibility-gbcr.html
blob: 074e63bf2bd3d9e24d9fe130738d7e6c903ca5fb (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
<!doctype html>
<meta charset="utf-8">
<title>HTML Test: The embed element represents a document</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<meta name="assert" content="Ensure document finishes load when getBoundingClientRect is attempted before the embed is finished loading">

<style>
.hidden { content-visibility: hidden; }
</style>
<body>
  <script>
  async_test(t => {
    window.onload = () => t.done();
  }, "ensure onload happens");
  </script>
  <div class=hidden>
    <embed id=target src="embed-iframe.html">
  </div>
  <script>
    // Ensure we process style and layout in the hidden object.
    target.getBoundingClientRect();
  </script>
</body>