Bug 236588 - Text replacement highlight shows even if input is hidden
Summary: Text replacement highlight shows even if input is hidden
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 15
Hardware: Unspecified iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-14 04:49 PST by Jake Archibald
Modified: 2022-02-14 19:59 PST (History)
5 users (show)

See Also:


Attachments
Screenshot (33.33 KB, image/png)
2022-02-14 04:49 PST, Jake Archibald
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jake Archibald 2022-02-14 04:49:35 PST
Created attachment 451891 [details]
Screenshot

https://static-misc-3.glitch.me/ios-text-bug/

1. Tap the 'input'
2. Type 'hellp' using the on screen keyboard

A blue rectangle appears.

This demo simulates a fake input. In cases like this, the developer wants the user to interact with a real input (and gain all the usability and accessibility benefits), but they want to create a different visual representation of the input, so the real input is visually hidden.

The blue rectangle is the highlight iOS produces when an autocorrect candidate is found. This shouldn't be visible in this example. Ideally it would take the opacity of the input into account.
Comment 1 Radar WebKit Bug Importer 2022-02-14 19:59:00 PST
<rdar://problem/88943608>