WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
304174
Find-in-page should scroll to revealed matches
https://bugs.webkit.org/show_bug.cgi?id=304174
Summary
Find-in-page should scroll to revealed matches
Jake Archibald
Reported
2025-12-15 03:58:05 PST
Created
attachment 477731
[details]
Demo of bug When found text (eg via cmd-f) is revealed, as in it was inside a `<div hidden="until-found">` or `<details>`, the page should be scrolled to the match. Right now WebKit doesn't appear to scroll at all. [Demo](
https://random-stuff.jakearchibald.com/bug-repros/until-found-scroll/
). I've attached a video of the same bug in Firefox, in case it isn't clear.
Attachments
Demo of bug
(281.45 KB, video/mp4)
2025-12-15 03:58 PST
,
Jake Archibald
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-12-22 03:59:12 PST
<
rdar://problem/167016515
>
Tim Nguyen (:ntim)
Comment 2
2026-04-08 18:21:44 PDT
There's no step in the spec that says to scroll to the item:
https://html.spec.whatwg.org/multipage/interaction.html#ancestor-revealing-algorithm
Tim Nguyen (:ntim)
Comment 3
2026-04-08 18:23:39 PDT
Oh I guess it's implied as part of find-in-page.
Jake Archibald
Comment 4
2026-04-08 20:36:17 PDT
Exactly. It's important that it scrolls to the matched text and not just the revealed element.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug