3 <script src=
"../../../resources/js-test.js"></script>
6 <progress id=
"target" min=
"0" max=
"100" value=
"50" style=
"-webkit-appearance: none;" ></progress>
9 target
= document
.getElementById("target");
10 cloned
= target
.cloneNode();
11 document
.body
.insertBefore(cloned
, target
.nextSibling
);
13 if (!window
.internals
) {
14 debug("You need internals to run this test.");
18 targetShadowRoot
= internals
.shadowRoot(target
);
19 clonedShadowRoot
= internals
.shadowRoot(cloned
);
21 shouldBe("cloned.value", "target.value");
22 shouldBe("internals.shadowPseudoId(clonedShadowRoot.firstChild.firstChild)", "internals.shadowPseudoId(targetShadowRoot.firstChild.firstChild)");
23 shouldBe("internals.shadowPseudoId(clonedShadowRoot.firstChild.firstChild.firstChild)", "internals.shadowPseudoId(targetShadowRoot.firstChild.firstChild.firstChild)");
26 shouldBe("clonedShadowRoot.firstChild.firstChild.firstChild.style.width", '"70%"');
27 shouldBe("targetShadowRoot.firstChild.firstChild.firstChild.style.width", '"50%"');