[Webkit-unassigned] [Bug 217350] New: Text input element with step attribute does not scroll into view when setting focus and selection
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 5 16:18:47 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=217350
Bug ID: 217350
Summary: Text input element with step attribute does not scroll
into view when setting focus and selection
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: adam at reineke.me
CC: cdumez at apple.com, wenson_hsieh at apple.com
Created attachment 410580
--> https://bugs.webkit.org/attachment.cgi?id=410580&action=review
Min repro for the bug
The input element receives focus but does not scroll into view if you call focus() and a selection API on an input element with the step attribute (except when the exact text selection was already set).
Repro:
1. input type=text with the step attribute set. Note: Any value for step seems to work. I use the empty string.
2. Scroll input off-screen
3. Send focus and set selection at the same time.
- Note: Setting the selection via any of the selection APIs hits the bug: .select(), .selectionStart and .selectionEnd together, or .setSelectionRange().
- Note: The selection being set must be different than the current selection to hit the bug.
- Note: If you click one of the select buttons on the left twice in a row, the input will scroll into view because text selection was unchanged.
Version: Tested in Safari 14.0 (15610.1.28.1.9, 15610) and Safari Technology Preview (Release 113, Safari 14.0.1, Webkit 15610.2.3.1). I expect it also happens in Safari 13 based on the bug report I was investigating when I reduced to this min-repro.
Tested on Mac desktop only.
Test file attached with min repro.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201005/2f1e6e1c/attachment.htm>
More information about the webkit-unassigned
mailing list