diff --git a/shadow-dom/declarative/declarative-shadow-dom-attachment.html b/shadow-dom/declarative/declarative-shadow-dom-attachment.html index 6fb2a8a5ecc30f5..e0d5f0adeafdff3 100644 --- a/shadow-dom/declarative/declarative-shadow-dom-attachment.html +++ b/shadow-dom/declarative/declarative-shadow-dom-attachment.html @@ -43,8 +43,7 @@ } // Now, call attachShadow() and make sure we get back the same (original) shadowRoot, but empty. - const oppositeMode = (mode === 'open') ? 'closed' : 'open'; - const newShadow = element.attachShadow({mode: oppositeMode}); // Should be no exception here + const newShadow = element.attachShadow({mode: mode, delegatesFocus: delegatesFocus}); if (mode === 'open') { assert_equals(element.shadowRoot, originalShadowRoot, 'The same shadow root should be returned'); assert_equals(element.shadowRoot.innerHTML, '', 'Empty shadow content'); @@ -55,6 +54,7 @@ element.attachShadow({mode: mode}); }, 'Calling attachShadow a second time on an element with a declarative shadow fails (same mode)'); + const oppositeMode = (mode === 'open') ? 'closed' : 'open'; assert_throws_dom('NotSupportedError', () => { element.attachShadow({mode: oppositeMode}); }, 'Calling attachShadow a second time on an element with a declarative shadow fails (opposite mode)'); diff --git a/shadow-dom/declarative/declarative-shadow-dom-basic.html b/shadow-dom/declarative/declarative-shadow-dom-basic.html index 20ca34f6f3e2594..8799978804a53b4 100644 --- a/shadow-dom/declarative/declarative-shadow-dom-basic.html +++ b/shadow-dom/declarative/declarative-shadow-dom-basic.html @@ -154,10 +154,14 @@ diff --git a/shadow-dom/declarative/declarative-shadow-dom-repeats.html b/shadow-dom/declarative/declarative-shadow-dom-repeats.html new file mode 100644 index 000000000000000..459778ba6f060d8 --- /dev/null +++ b/shadow-dom/declarative/declarative-shadow-dom-repeats.html @@ -0,0 +1,70 @@ + +Declarative Shadow DOM Element Attachment + + + + + + + +
+ + +
+ +
+ + +
+ + + +
+ +
+ + + +
+ +
+ +