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

Side by Side Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html

Issue 1363023005: Implement FullScreen using top layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
esprehn 2015/09/24 20:17:01 leave out html, head and body
dsinclair 2015/09/28 17:14:57 Done.
4 <style>
5 ::backdrop {
6 background: green;
7 }
8 </style>
9 </head>
10 <body>
11 <p>Test that fullscreen object elements get a ::backdrop. You should see a green background when the object element is fullscreen.</p>
12 <object type="application/x-shockwave-flash" data="../plugins/resources/simple_b lank.swf" width="100" height="100"></object>
13 <button>Go fullscreen</button>
14 <script>
15 obj = document.querySelector('object');
esprehn 2015/09/24 20:17:01 object
dsinclair 2015/09/28 17:14:57 Done.
16 document.querySelector('button').addEventListener('click', function() {
17 obj.webkitRequestFullscreen();
18 });
19 if (window.testRunner) {
20 testRunner.waitUntilDone();
21 document.addEventListener('webkitfullscreenchange', function() {
22 setTimeout(function() {
esprehn 2015/09/24 20:17:01 ditto, don't wait with setTimeout(0)
dsinclair 2015/09/28 17:14:57 Done.
23 testRunner.notifyDone();
24 }, 0);
25 });
26 document.addEventListener('keydown', function() { obj.webkitRequestFullscree n(); });
27 eventSender.keyDown('a');
esprehn 2015/09/24 20:17:01 ditto, this is more complex than needed
dsinclair 2015/09/28 17:14:57 Done.
28 }
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698