Index: third_party/WebKit/LayoutTests/shadow-dom/host-link-style.html |
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/host-link-style.html b/third_party/WebKit/LayoutTests/shadow-dom/host-link-style.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b9b171cddc536d2975c56653cf31892754d94ac9 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/shadow-dom/host-link-style.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<div id="host">This text should have a green background.</div> |
+<script> |
+ test(() => { |
+ var root = host.attachShadow({mode:'open'}); |
+ root.innerHTML = '<link rel="stylesheet" href="data:text/css,:host{background:green}"><slot />'; |
+ assert_equals(getComputedStyle(host).backgroundColor, "rgb(0, 128, 0)", "Host background should be green."); |
+ }, "Check that :host rule from link stylesheet applies to host element."); |
+</script> |