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

Unified Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-ancestor-shadow.html

Issue 2287353002: Cross shadow DOM boundaries for :-webkit-full-screen-ancestor (Closed)
Patch Set: Created 4 years, 4 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/Source/core/dom/Element.cpp » ('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-ancestor-shadow.html
diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-ancestor-shadow.html b/third_party/WebKit/LayoutTests/fullscreen/full-screen-ancestor-shadow.html
new file mode 100644
index 0000000000000000000000000000000000000000..eb0faf725818510b2a46bb37a34376613e5d6f87
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-ancestor-shadow.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<title>Test that the :-webkit-full-screen-ancestor selector matches outside of shadow DOM boundary.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="trusted-event.js"></script>
+<div id="log"></div>
+<div id="host"></div>
+<script>
+async_test(function()
+{
+ var host = document.getElementById("host");
+ var root = host.attachShadow({ mode: "open" });
+ var target = document.createElement("div");
+ host.appendChild(target);
+
+ trusted_request(target, document.body);
+ document.onfullscreenchange = this.step_func_done(function()
+ {
+ assert_true(host.matches(":-webkit-full-screen-ancestor"));
+ });
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698