mirror of
https://github.com/servo/servo.git
synced 2025-10-01 17:19:16 +01:00
Add support for fullscreen #10102
This commit is contained in:
parent
c3c086e521
commit
55f0e56224
33 changed files with 454 additions and 30 deletions
|
@ -8132,6 +8132,12 @@
|
|||
"url": "/_mozilla/mozilla/form_tab_keyevent.html"
|
||||
}
|
||||
],
|
||||
"mozilla/fullscreen-remove-single.html": [
|
||||
{
|
||||
"path": "mozilla/fullscreen-remove-single.html",
|
||||
"url": "/_mozilla/mozilla/fullscreen-remove-single.html"
|
||||
}
|
||||
],
|
||||
"mozilla/getBoundingClientRect.html": [
|
||||
{
|
||||
"path": "mozilla/getBoundingClientRect.html",
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<!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>
|
||||
<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);
|
||||
document.onfullscreenchange = t.step_func(function()
|
||||
{
|
||||
assert_equals(document.fullscreenElement, null);
|
||||
t.done();
|
||||
});
|
||||
single.remove();
|
||||
});
|
||||
single.requestFullscreen();
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue