Bug 240575

Summary: Input caret scroll breaks when padding is set to 0
Product: WebKit Reporter: Liam DeBeasi <ldebeasi>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, megan_gardner, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Code reproduction none

Description Liam DeBeasi 2022-05-18 06:15:27 PDT
Created attachment 459537 [details]
Code reproduction

Given an input with padding: 0 and a label, attempting to scroll in the input does not work.

Steps to reproduce:

1. Open attached reproduction on an iOS device.
2. Type enough text into the input such that the text goes offscreen and the input scrolls.
3. Long press on the Space key to turn the keyboard into a trackpad.
4. Move left to scroll the input to the beginning of the text. Observe that the input does not scroll.

Expected Behavior:

I expect that the input scrolls when using the keyboard as a trackpad.

Actual Behavior:

The input does not scroll.

Other Information:

- I tested this on iOS 15.5.
Comment 1 Radar WebKit Bug Importer 2022-05-25 06:16:13 PDT
<rdar://problem/93897238>