Bug 299192

Summary: `element.scrollTo` / `element.scrollBy` do not work on text inputs
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: ScrollingAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: carlosmanuelortegatorres8, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/54960

Tim Nguyen (:ntim)
Reported 2025-09-19 10:54:23 PDT
``` <style> #inputscroller { width: 100px; height: 50px; } </style> <input type="text" id="inputscroller" value="qwertyuiopasddfghjklzxcvbnmqwertyuiopasddfghjklzxcvbnmqwer"> <script>inputscroller.scrollTo(20, 0)</script> ``` This won't work because we don't forward the scrollTo call to the inner input, like we do when setting scrollLeft/scrollTop
Attachments
Radar WebKit Bug Importer
Comment 1 2025-09-19 13:58:46 PDT
Tim Nguyen (:ntim)
Comment 2 2025-09-19 14:01:23 PDT
Tim Nguyen (:ntim)
Comment 3 2025-09-19 15:39:58 PDT
EWS
Comment 4 2025-09-19 20:13:00 PDT
Committed 300274@main (2638b49042d8): <https://commits.webkit.org/300274@main> Reviewed commits have been landed. Closing PR #51032 and removing active labels.
carlosmanuelortegatorres8
Comment 5 2025-09-20 00:00:21 PDT
(In reply to Radar WebKit Bug Importer from comment #1) > <rdar://problem/160963921>
Note You need to log in before you can comment on or make changes to this bug.