Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-ua-style.html |
| diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-ua-style.html b/third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-ua-style.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..57c2a27e081f02e8b399fbe31f601d85d827649a |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-ua-style.html |
| @@ -0,0 +1,22 @@ |
| +<!DOCTYPE html> |
| +<script src="full-screen-test.js"></script> |
| +<div id="ancestor" style="position:relative"> |
| + <iframe allowfullscreen id="frame" src="data:text/html,<video></video>" onload="runTest()"></iframe> |
|
philipj_slow
2016/03/29 12:17:37
I think that in principle it's possible that the i
rune
2016/03/29 12:41:34
Done.
|
| +</div> |
| +<script> |
| + function runTest() { |
| + document.offsetWidth; |
| + frame.contentDocument.offsetWidth; |
| + var videoEnteredFullScreen = function() { |
| + test("getComputedStyle(ancestor).position == 'static'"); |
| + endTest(); |
| + }; |
| + waitForEvent(frame.contentDocument, "webkitfullscreenchange", videoEnteredFullScreen); |
| + |
| + test("getComputedStyle(ancestor).position == 'relative'"); |
| + |
| + runWithKeyDown(function(){ |
| + frame.contentDocument.querySelector("video").webkitRequestFullScreen(); |
| + }); |
| + } |
| +</script> |