| Index: LayoutTests/fast/css/invalidation/shadow-host-toggle.html
|
| diff --git a/LayoutTests/fast/css/invalidation/shadow-host-toggle.html b/LayoutTests/fast/css/invalidation/shadow-host-toggle.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..02bdfb997715e753fcf9fc555ae0d41b670a408e
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css/invalidation/shadow-host-toggle.html
|
| @@ -0,0 +1,14 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +<div></div>
|
| +<script>
|
| + if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| + var host = document.querySelector('div');
|
| + var root = host.createShadowRoot();
|
| + root.innerHTML = '<style>:host(.enabled) #foo { background: green;}</style><div id="foo"></div>';
|
| +
|
| + var foo = root.querySelector("#foo");
|
| + host.classList.add('enabled');
|
| + shouldBe('getComputedStyle(foo).backgroundColor', '"rgb(0, 128, 0)"');
|
| +</script>
|
|
|