mirror of
https://github.com/servo/servo.git
synced 2025-06-30 12:03:38 +01:00
21 lines
830 B
HTML
21 lines
830 B
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 => {
|
|
t.add_cleanup(() => document.exitFullscreen());
|
|
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>
|