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

Side by Side Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-stacking-context.html

Issue 2573773002: Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: address feedback Created 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 var runPixelTests = true; 5 var runPixelTests = true;
6 6
7 function init() { 7 function init() {
8 waitForEventAndEnd(document, 'webkitfullscreenchange'); 8 waitForEventOnce(document, 'webkitfullscreenchange', function() {
9 testRunner.layoutAndPaintAsyncThen(endTest);
10 });
9 runWithKeyDown(goFullScreen); 11 runWithKeyDown(goFullScreen);
10 } 12 }
11 13
12 function goFullScreen() { 14 function goFullScreen() {
13 document.getElementById('video').webkitRequestFullScreen(); 15 document.getElementById('video').webkitRequestFullScreen();
14 } 16 }
15 </script> 17 </script>
16 <script src="full-screen-test.js"></script> 18 <script src="full-screen-test.js"></script>
17 <style> 19 <style>
18 #one { 20 #one {
(...skipping 29 matching lines...) Expand all
48 <body onload="init()"> 50 <body onload="init()">
49 <div>This tests that a full screen element in a lower stacking context b locks a sibling in a higher stacking context. 51 <div>This tests that a full screen element in a lower stacking context b locks a sibling in a higher stacking context.
50 After entering full screen mode, only a black box should be visible . 52 After entering full screen mode, only a black box should be visible .
51 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div> 53 Click <button onclick="goFullScreen()">go full screen</button> to r un the test.</div>
52 <div id="one"></div> 54 <div id="one"></div>
53 <div id="zero"> 55 <div id="zero">
54 <video id="video"></video> 56 <video id="video"></video>
55 </div> 57 </div>
56 </body> 58 </body>
57 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698