WPT
wpt / scroll-to-text-fragment / scroll-to-text-fragment.html
Spec: URL Fragment Text Directives ↗
Runs: Chrome 155.0.8039.0 (wpt@2a20f1bd6, 2026-09-03) | Firefox 157.0a1 (wpt@b861d4d9d, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a9df8 (wpt@9b4cabf6d, 2026-09-03) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 1/44 | 44/44 | 42/44 | 1/44 | 1/44 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| Test navigation with fragment: Empty hash should scroll to top. | PASS | PASS | PASS | PASS | PASS | — |
| Test navigation with fragment: Text directive with invalid syntax (context terms without "-") should not parse as a text directive. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive with invalid syntax (only prefix, no start text) should not parse as a text directive. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive with invalid syntax (only suffix, no start text) should not parse as a text directive. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Generic fragment directive with existing element fragment should scroll to element. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Uppercase TEXT directive should not parse as a text directive. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Exact text with no context should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Case-insensitive search with no context should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Exact text with prefix should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Exact text with suffix should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Exact text with prefix and suffix should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Exact text with prefix and suffix and query equals prefix.. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with no context should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with prefix should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with suffix should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with prefix and suffix should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with non-matching endText should not match. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with non-matching startText should not match. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with prefix and nonmatching suffix should not match. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text range with nonmatching prefix and matching suffix should not match. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Exact text with percent encoded spaces should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Non-whole-word exact text with spaces should not match. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Fragment directive with percent encoded syntactical characters "&,-" should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Fragment directive with percent encoded non-ASCII unicode character should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Fragment directive with all TextMatchChars should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Multiple matching exact texts should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Multiple non-whole-word exact texts should not match. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: A non-matching text directive followed by a matching text directive should match and scroll into view the second text directive. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive followed by non-text directive should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Multiple text directives and a non-text directive should match text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive with existing element fragment should match and scroll into view text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive with nonexistent element fragment should match and scroll into view text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Non-matching text directive with existing element fragment should scroll to element. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Non-matching text directive with nonexistent element fragment should not match and not scroll. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Multiple match text directive disambiguated by prefix should match the prefixed text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Multiple match text directive disambiguated by suffix should match the suffixed text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Multiple match text directive disambiguated by prefix and suffix should match the text with the given context. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive should match when context terms are separated by node boundaries. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive should match text within shadow DOM. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive should not scroll to hidden text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive should not scroll to display none text. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive should horizontally scroll into view. | FAIL | PASS | FAIL | FAIL | FAIL | — |
| Test navigation with fragment: Text directive should horizontally scroll into view within a wide line. | FAIL | PASS | PASS | FAIL | FAIL | — |
| Test navigation with fragment: Text directive that spans a range larger than the viewport should scroll the start into view. | FAIL | PASS | FAIL | FAIL | FAIL | — |