diff --git a/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment-target.html b/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment-target.html index 724132fab29bf..fa229dd032f29 100644 --- a/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment-target.html +++ b/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment-target.html @@ -16,7 +16,12 @@ position: absolute; top: 3000px; } + #element { + position: absolute; + top: 2000px; + } +
Element

This is a test page

diff --git a/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment.html b/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment.html index eaab18437063d..db1b1ded30657 100644 --- a/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment.html +++ b/testing/web-platform/tests/scroll-to-text-fragment/scroll-to-text-fragment.html @@ -18,6 +18,7 @@ { fragment: '##targetText=this&targetText=test,page', expect_scroll: true }, { fragment: '#pagestate##targetText=test', expect_scroll: true }, { fragment: '#pagestate##targetText=nomatch', expect_scroll: false }, + { fragment: '#element##targetText=nomatch', expect_scroll: true }, ]; for (const test_case of test_cases) {