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> |