summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe-display-none-with-object.html
blob: ee739532173a1ce2755364e8781b302e6e3f9756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<meta charset=utf-8>
<title>Test that iframe with object triggers load event in owner document</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
  async_test(t => {
    window.onload = t.step_func_done();
    const obj = document.createElement("iframe");
    obj.style.display = "none";
    obj.src = "support/iframe-with-object.html";
    document.body.appendChild(obj);
  }, "Load event triggered on window");
</script>
</body>