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

Side by Side Diff: LayoutTests/fullscreen/full-screen-video-has-backdrop.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 ::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');
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() {
23 testRunner.notifyDone();
24 }, 0);
25 });
26 document.addEventListener('keydown', function() { obj.webkitRequestFullscree n(); });
27 eventSender.keyDown('a');
28 }
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698