Bug 299192
| Summary: | `element.scrollTo` / `element.scrollBy` do not work on text inputs | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> |
| Component: | Scrolling | Assignee: | 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)
```
<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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/160963921>
Tim Nguyen (:ntim)
Pull request: https://github.com/WebKit/WebKit/pull/51032
Tim Nguyen (:ntim)
https://github.com/web-platform-tests/wpt/pull/54960
EWS
Committed 300274@main (2638b49042d8): <https://commits.webkit.org/300274@main>
Reviewed commits have been landed. Closing PR #51032 and removing active labels.
carlosmanuelortegatorres8
(In reply to Radar WebKit Bug Importer from comment #1)
> <rdar://problem/160963921>