diff --git a/css/css-scoping/scope-pseudo-in-shadow.html b/css/css-scoping/scope-pseudo-in-shadow.html new file mode 100644 index 00000000000000..ca8720d975f1cc --- /dev/null +++ b/css/css-scoping/scope-pseudo-in-shadow.html @@ -0,0 +1,27 @@ + +:scope pseudo does not match in shadow root + + + + +
+ diff --git a/speculation-rules/prefetch/document-rules.https.html b/speculation-rules/prefetch/document-rules.https.html index 805f1cfbc36bfd..ae75ec94036f45 100644 --- a/speculation-rules/prefetch/document-rules.https.html +++ b/speculation-rules/prefetch/document-rules.https.html @@ -18,7 +18,6 @@ - @@ -183,24 +182,6 @@ assert_equals(await isUrlPrefetched(url_2), 0); }, 'test selector_matches with :root'); - // 'selector_matches' should use the shadowRoot as the scoping root when - // matching links inside a shadow tree. - subsetTestByKey('selectorMatchesInShadowTree', promise_test, async t => { - insertDocumentRule({ selector_matches: ':scope a.important-link' }); - - // Create shadow root. - const shadowHost = document.createElement('div'); - document.body.appendChild(shadowHost); - const shadowRoot = shadowHost.attachShadow({ mode: 'open' }); - - const url = getPrefetchUrl(); - const link = addLink(url, shadowRoot); - link.className = 'important-link'; - await new Promise(resolve => t.step_timeout(resolve, 2000)); - - assert_equals(await isUrlPrefetched(url), 1); - }, 'test selector_matches with link inside shadow tree'); - subsetTestByKey('selectorMatchesDisplayNone', promise_test, async t => { const style = document.createElement('style'); style.innerText = ".important-section { display: none; }";