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

Unified Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html

Issue 1363023005: Implement FullScreen using top layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html
diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html b/third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html
new file mode 100644
index 0000000000000000000000000000000000000000..f08958cac6cc7474e7370d846df3869a09fa1e78
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-video-has-backdrop.html
@@ -0,0 +1,44 @@
+<!doctype html>
+<style>
+#wrapper {
+ display: flex;
+ justify-content: center;
+}
+
+::backdrop {
+ background: green;
+}
+</style>
+
+<script>
+function goFullscreen() {
+ document.getElementById('wrapper').webkitRequestFullscreen();
+}
+</script>
+
+<p>Test that fullscreen object elements get a ::backdrop. You should see a green background when the object element is fullscreen.</p>
+
+<div id='wrapper'>
+ <object type="application/x-shockwave-flash" data="../plugins/resources/simple_blank.swf" width="100" height="100" id='object'></object>
+</div>
+
+<button id='button' onclick='goFullscreen()'>Go fullscreen</button>
+
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ document.addEventListener('webkitfullscreenchange', function() {
+ testRunner.notifyDone();
+ });
+
+ function thunk() {
+ document.removeEventListener("keypress", thunk);
+ goFullscreen();
+ }
+ document.addEventListener("keypress", thunk);
+ if (window.eventSender)
+ eventSender.keyDown(" ", []);
+
+ testRunner.notifyDone();
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698