-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alan Jeffrey
committed
Feb 5, 2019
1 parent
871fe93
commit d286209
Showing
7 changed files
with
123 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
prefs: ["dom.fullscreen.test:true"] |
3 changes: 3 additions & 0 deletions
3
tests/wpt/mozilla/meta/mozilla/fullscreen/reftests/fullscreen-hides-others.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
[fullscreen-hides-others.html] | |||
type: reftest | |||
expected: FAIL |
15 changes: 15 additions & 0 deletions
15
tests/wpt/mozilla/tests/mozilla/fullscreen/reftests/fullscreen-baseline-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
<!doctype html> | |||
<head> | |||
<meta charset=utf-8> | |||
<title>Baseline fullscreen reference</title> | |||
<style> | |||
div { | |||
position: fixed; top: 0; left: 0; | |||
height: 100%; width: 100%; | |||
background: green; | |||
} | |||
</style> | |||
</head> | |||
<body> | |||
<div>0</div> | |||
</body> |
18 changes: 18 additions & 0 deletions
18
tests/wpt/mozilla/tests/mozilla/fullscreen/reftests/fullscreen-baseline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
<!doctype html> | |||
<head> | |||
<meta charset=utf-8> | |||
<title>Baseline fullscreen</title> | |||
<link rel=match href=fullscreen-baseline-ref.html> | |||
<style> | |||
div { background: red; } | |||
#it { background: green; } | |||
</style> | |||
</head> | |||
<body> | |||
<div>-1</div> | |||
<div id="it">0</div> | |||
<div>1</div> | |||
</body> | |||
<script> | |||
document.getElementById("it").requestFullscreen(); | |||
</script> |
31 changes: 31 additions & 0 deletions
31
tests/wpt/mozilla/tests/mozilla/fullscreen/reftests/fullscreen-hides-others.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,31 @@ | |||
<!doctype html> | |||
<head> | |||
<meta charset=utf-8> | |||
<title>Elements which try to get in front of fullscreen</title> | |||
<link rel=match href=fullscreen-baseline-ref.html> | |||
<style> | |||
div { background: red; } | |||
#it { background: green; } | |||
|
|||
/* Fixed elements should not show up in front of fullscreen elements */ | |||
.fixed { position: fixed; top: 0; left: 0; background: blue; } | |||
|
|||
/* Elements with a large z-index (even the maximum u32) | |||
should not show up in front of fullscreen elements */ | |||
.zindex { z-index: 4294967295; background: yellow; } | |||
</style> | |||
</head> | |||
<body> | |||
<div>-4</div> | |||
<div class="fixed zindex">-3</div> | |||
<div class="fixed">-2</div> | |||
<div class="zindex">-1</div> | |||
<div id="it">0</div> | |||
<div>1</div> | |||
<div class="fixed zindex">2</div> | |||
<div class="fixed">3</div> | |||
<div class="zindex">4</div> | |||
</body> | |||
<script> | |||
document.getElementById("it").requestFullscreen(); | |||
</script> |