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

Side by Side Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-ua-style.html

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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 <script src="full-screen-test.js"></script> 2 <script src="full-screen-test.js"></script>
3 <script> 3 <script>
4 function runTest() { 4 function runTest() {
5 document.offsetWidth; 5 document.offsetWidth;
6 frame.contentDocument.offsetWidth; 6 frame.contentDocument.offsetWidth;
7 var videoEnteredFullScreen = function() { 7 var videoEnteredFullScreen = function() {
8 test("getComputedStyle(ancestor).position == 'static'"); 8 test("getComputedStyle(document.documentElement).overflow == 'hidden '");
9 endTest(); 9 endTest();
10 }; 10 };
11 waitForEvent(frame.contentDocument, "webkitfullscreenchange", videoEnter edFullScreen); 11 waitForEvent(frame.contentDocument, "webkitfullscreenchange", videoEnter edFullScreen);
12 12
13 test("getComputedStyle(ancestor).position == 'relative'"); 13 test("getComputedStyle(document.documentElement).overflow == 'visible'") ;
14 14
15 runWithKeyDown(function(){ 15 runWithKeyDown(function(){
16 frame.contentDocument.querySelector("video").webkitRequestFullScreen (); 16 frame.contentDocument.querySelector("video").webkitRequestFullScreen ();
17 }); 17 });
18 } 18 }
19 </script> 19 </script>
20 <div id="ancestor" style="position:relative"> 20 <iframe allowfullscreen id="frame" src="data:text/html,<video></video>" onload=" runTest()"></iframe>
21 <iframe allowfullscreen id="frame" src="data:text/html,<video></video>" onlo ad="runTest()"></iframe>
22 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698