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

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

Issue 1823143002: Ensure fullscreen.css loaded for ancestor invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-ordered iframe and script in test Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-ua-style-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0ae491e8398e5630e2570e75c4fc54fb426ad8fb
--- /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>
+<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>
+<div id="ancestor" style="position:relative">
+ <iframe allowfullscreen id="frame" src="data:text/html,<video></video>" onload="runTest()"></iframe>
+</div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fullscreen/full-screen-iframe-ua-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698