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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <style>
5 div {
6 background: yellow;
7 top: 100px;
8 bottom: 100px;
9 left: 100px;
10 right: 100px;
11 height: auto;
12 width: auto;
13 }
14 ::backdrop {
15 background: green;
16 }
17 </style>
18 </head>
19 <body>
20 <div>Test that fullscreen elements are in the top layer. The test passes if
21 you see a green backdrop behind this box when fullscreen.</div>
22 <button>Go fullscreen</button>
23 <script>
24 div = document.querySelector('div');
25 document.querySelector('button').addEventListener('click', function() {
26 div.webkitRequestFullscreen();
27 });
28 if (window.testRunner) {
29 testRunner.waitUntilDone();
30 document.addEventListener('webkitfullscreenchange', function() {
31 setTimeout(function() {
32 testRunner.notifyDone();
33 }, 0);
34 });
35 document.addEventListener('keydown', function() { div.webkitRequestFullscree n(); });
36 eventSender.keyDown('a');
37 }
38 </script>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698