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

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

Issue 134753003: Reland r165710 "Replace RenderFullScreen with top layer" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing Created 6 years, 11 months 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..16bbfca14bc6a36b7ea29c2f4d4e43e94a454e18
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-is-in-top-layer.html
@@ -0,0 +1,40 @@
+<!doctype html>
+<html>
+<head>
+<style>
+div {
+ background: yellow;
+ 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