https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0cb962b995d06ee5a8e581277aa7906b039563af authored by Anne van Kesteren on 29 March 2018, 12:32:41 UTC
document.open() and the load event
Tip revision: 0cb962b
move-to-inactive-document-manual.html
<!DOCTYPE html>
<title>Move the fullscreen element to an inactive document</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../trusted-click.js"></script>
<div></div>
<script>
async_test(t => {
  const div = document.querySelector("div");
  document.onfullscreenchange = t.step_func(event => {
    const inactiveDocument = document.implementation.createDocument(null, "");
    inactiveDocument.appendChild(div);

    div.onfullscreenchange = t.unreached_func("fullscreenchange fired on element");
    inactiveDocument.onfullscreenchange = t.unreached_func("fullscreenchange fired on other document");
    document.onfullscreenchange = t.step_func_done();
  });
  trusted_request(t, div);
});
</script>
back to top