| Index: LayoutTests/fast/dom/shadow/shadow-added-display-none-host.html
|
| diff --git a/LayoutTests/fast/dom/shadow/shadow-added-display-none-host.html b/LayoutTests/fast/dom/shadow/shadow-added-display-none-host.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eec6ed29e56d6b3cbfbd0e4f0b56d5bbe5670ea3
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/shadow/shadow-added-display-none-host.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +
|
| +<script src="../../../resources/js-test.js"></script>
|
| +
|
| +<div style="display: none">
|
| + <span id="host"></span>
|
| +</div>
|
| +
|
| +<script>
|
| + description("Tests adding a shadow root to a display none host doesn't leave dirty bits.");
|
| +
|
| + getComputedStyle(document.body).color; // recalcStyle.
|
| + var root = document.getElementById("host").createShadowRoot();
|
| + var inside = document.createElement("inside");
|
| + root.appendChild(inside);
|
| +
|
| + shouldBeEqualToString("getComputedStyle(inside).borderWidth", "0px");
|
| + inside.style.border = "10px solid red";
|
| + shouldBeEqualToString("getComputedStyle(inside).borderWidth", "10px");
|
| +</script>
|
|
|