Index: third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-dynamic-attribute-change.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-dynamic-attribute-change.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-dynamic-attribute-change.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b56c42ceddcedad0dda83e352c5ce6d047fa5a25 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-dynamic-attribute-change.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<div id="host"> |
+ <div id="child">I should be green.</div> |
+</div> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+var shadowRoot = document.getElementById('host').attachShadow({mode: 'open'}); |
+shadowRoot.innerHTML = '<style>slot::slotted(.selected) { ' + |
+ 'background: green; }</style>' + |
+ '<slot></slot>'; |
+ |
+setTimeout(function() { |
+ document.getElementById('child').classList.add('selected'); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+}, 0); |
+</script> |