4 <script src="../js/resources/js-test-pre.js"></script>
8 Tests that a range input's slider is cloned along with its host. There
9 should be a second range input in the document and it should have a
10 slider positioned at zero.
12 <input type="range" id="sheep" style="display: block; width: 100px;">
13 <div id="console"></div>
15 var sheep = document.querySelector('#sheep');
16 var dolly = sheep.cloneNode();
18 sheep.insertAdjacentElement('afterEnd', dolly);
20 // Cloned element should be the same size. Having zero height is one
21 // symptom of a broken clone.
22 shouldBe('dolly.clientHeight', 'sheep.clientHeight');
24 if (window.internals) {
25 var sheepShadow = internals.shadowRoot(sheep);
26 var dollyShadow = internals.shadowRoot(dolly);
27 shouldBe('internals.shadowPseudoId(dollyShadow.firstChild)',
28 'internals.shadowPseudoId(sheepShadow.firstChild)');
33 <script src="../js/resources/js-test-post.js"></script>