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
remove-parent-manual.html
<!DOCTYPE html>
<title>Remove the parent of the fullscreen element</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../trusted-click.js"></script>
<div id="log"></div>
<div>
    <div id="child"></div>
</div>
<script>
async_test(function(t)
{
    var child = document.getElementById("child");
    trusted_request(t, child);
    document.onfullscreenchange = t.step_func(function(event)
    {
        assert_equals(document.fullscreenElement, child);
        assert_equals(event.target, child);
        child.parentNode.remove();
        document.onfullscreenchange = t.step_func_done(function(event)
        {
            assert_equals(document.fullscreenElement, null);
            assert_equals(event.target, document);
        });
    });
});
</script>
back to top