diff --git a/testing/web-platform/tests/css/css-scoping/scope-pseudo-in-shadow.html b/testing/web-platform/tests/css/css-scoping/scope-pseudo-in-shadow.html new file mode 100644 index 0000000000000..ca8720d975f1c --- /dev/null +++ b/testing/web-platform/tests/css/css-scoping/scope-pseudo-in-shadow.html @@ -0,0 +1,27 @@ + +:scope pseudo does not match in shadow root + + + + +
+ diff --git a/testing/web-platform/tests/speculation-rules/prefetch/document-rules.https.html b/testing/web-platform/tests/speculation-rules/prefetch/document-rules.https.html index 805f1cfbc36bf..ae75ec94036f4 100644 --- a/testing/web-platform/tests/speculation-rules/prefetch/document-rules.https.html +++ b/testing/web-platform/tests/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; }";