diff --git a/shadow-dom/declarative/clonable.window.js b/shadow-dom/declarative/clonable.window.js deleted file mode 100644 index 5ebeacf37cbd8a..00000000000000 --- a/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/shadow-dom/shadow-root-clonable.html b/shadow-dom/shadow-root-clonable.html new file mode 100644 index 00000000000000..fa6a9d8df96b68 --- /dev/null +++ b/shadow-dom/shadow-root-clonable.html @@ -0,0 +1,49 @@ + +Shadow root clonable flag + + + + + + + +