diff --git a/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom.tentative.html index 6cb3680626f9..792d4bf4b3ec 100644 --- a/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom.tentative.html +++ b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom.tentative.html @@ -92,5 +92,26 @@ assert_true(!!s1,"Slot should be inside the shadow root"); }, 'Declarative Shadow DOM: Missing closing tag'); +test(() => { + const div = document.createElement('div'); + div.innerHTML = ` +
+ +
+ `; + var host = div.querySelector('#host'); + assert_true(!!host.shadowRoot,"No shadow root found"); + assert_true(host.shadowRoot.delegatesFocus,"delegatesFocus should be true"); + div.innerHTML = ` +
+ +
+ `; + host = div.querySelector('#host'); + assert_true(!!host.shadowRoot,"No shadow root found"); + assert_false(host.shadowRoot.delegatesFocus,"delegatesFocus should be false without the shadowrootdelegatesfocus attribute"); +}, 'Declarative Shadow DOM: delegates focus attribute');