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

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

Powered by Google App Engine
This is Rietveld 408576698