blob: 26613dd3d7ceef88a5348e8e71039e0dbb3be664 [file] [log] [blame] [edit]
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<progress id="target" min="0" max="100" value="50" style="appearance: none;" ></progress>
<script>
(function() {
target = document.getElementById("target");
cloned = target.cloneNode();
document.body.insertBefore(cloned, target.nextSibling);
if (!window.internals) {
debug("You need internals to run this test.");
return;
}
targetShadowRoot = internals.shadowRoot(target);
clonedShadowRoot = internals.shadowRoot(cloned);
shouldBe("cloned.value", "target.value");
shouldBe("internals.userAgentPart(clonedShadowRoot.firstChild.firstChild)", "internals.userAgentPart(targetShadowRoot.firstChild.firstChild)");
shouldBe("internals.userAgentPart(clonedShadowRoot.firstChild.firstChild.firstChild)", "internals.userAgentPart(targetShadowRoot.firstChild.firstChild.firstChild)");
cloned.value = 70;
shouldBe("clonedShadowRoot.firstChild.firstChild.firstChild.style.inlineSize", '"70%"');
shouldBe("targetShadowRoot.firstChild.firstChild.firstChild.style.inlineSize", '"50%"');
})();
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>