mirror of
https://github.com/servo/servo.git
synced 2025-10-16 08:20:22 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
24 lines
737 B
HTML
24 lines
737 B
HTML
<!DOCTYPE html>
|
|
<title>Remove the single element on the fullscreen element stack</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="../trusted-click.js"></script>
|
|
<div id="log"></div>
|
|
<div id="single"></div>
|
|
<script>
|
|
async_test(function(t)
|
|
{
|
|
var single = document.getElementById("single");
|
|
document.onfullscreenchange = t.step_func(function()
|
|
{
|
|
assert_equals(document.fullscreenElement, single);
|
|
single.remove();
|
|
document.onfullscreenchange = t.step_func(function()
|
|
{
|
|
assert_equals(document.fullscreenElement, null);
|
|
t.done();
|
|
});
|
|
});
|
|
trusted_request(t, single);
|
|
});
|
|
</script>
|