| Index: LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-class.html
|
| diff --git a/LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-class.html b/LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-class.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b23165ceba489dd6ceeb48b980a59839833a7149
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/shadow/content-pseudo-element-dynamic-class.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +.square { width: 100px; height: 100px; }
|
| +</style>
|
| +<p>You should see two green squares below.</p>
|
| +<div id="host1">
|
| + <div class="square"></div>
|
| +</div>
|
| +<br>
|
| +<div id="host2">
|
| + <div class="square"></div>
|
| +</div>
|
| +<script>
|
| +host1.createShadowRoot().innerHTML = "<style>.c::content .square { background-color: green }</style><content></content>";
|
| +host2.createShadowRoot().innerHTML = "<style>.c::content * { background-color: green }</style><content></content>";
|
| +document.body.offsetTop; // Force style recalc.
|
| +host1.shadowRoot.querySelector("content").className = "c";
|
| +host2.shadowRoot.querySelector("content").className = "c";
|
| +</script>
|
|
|