diff --git a/testing/web-platform/tests/shadow-dom/declarative/clonable.window.js b/testing/web-platform/tests/shadow-dom/declarative/clonable.window.js deleted file mode 100644 index 5ebeacf37cbd8..0000000000000 --- a/testing/web-platform/tests/shadow-dom/declarative/clonable.window.js +++ /dev/null @@ -1,10 +0,0 @@ -test(() => { - const div = document.createElement("div"); - const root = div.attachShadow({ mode: "open", clonable: true }); - root.appendChild(document.createElement("input")); - assert_true(root.clonable, "clonable attribute"); - - const cloned = div.cloneNode(true); - assert_equals(cloned.shadowRoot.children.length, 1, "children count"); - assert_equals(cloned.shadowRoot.children[0].localName, "input", "children content"); -}, "attachShadow with clonable: true"); diff --git a/testing/web-platform/tests/shadow-dom/shadow-root-clonable.html b/testing/web-platform/tests/shadow-dom/shadow-root-clonable.html new file mode 100644 index 0000000000000..fa6a9d8df96b6 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/shadow-root-clonable.html @@ -0,0 +1,49 @@ + +Shadow root clonable flag + + + + + + + +