Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: LayoutTests/fullscreen/full-screen-is-in-top-layer.html

Issue 788073004: Replace RenderFullscreen with top layer - Take II (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated after review comments. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fullscreen/full-screen-is-in-top-layer.html
diff --git a/LayoutTests/fullscreen/full-screen-is-in-top-layer.html b/LayoutTests/fullscreen/full-screen-is-in-top-layer.html
new file mode 100644
index 0000000000000000000000000000000000000000..e1b1df8a129e07e943d311feabcc5fd80608a14e
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-is-in-top-layer.html
@@ -0,0 +1,38 @@
+<!doctype html>
+<html>
+<head>
+<style>
+div {
+ top: 100px;
+ bottom: 100px;
+ left: 100px;
+ right: 100px;
+ height: auto;
+ width: auto;
+}
+::backdrop {
+ background: green;
+}
+</style>
+</head>
+<body>
+<div>Test that fullscreen elements are in the top layer. The test passes if you see a green backdrop behind this box when fullscreen.</div>
+<button>Go fullscreen</button>
+<script>
+div = document.querySelector('div');
+document.querySelector('button').addEventListener('click', function() {
+ div.webkitRequestFullscreen();
+});
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ document.addEventListener('webkitfullscreenchange', function() {
+ setTimeout(function() {
+ testRunner.notifyDone();
+ }, 0);
+ });
+ document.addEventListener('keydown', function() { div.webkitRequestFullscreen(); });
+ eventSender.keyDown('a');
+}
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698