| Summary: | long-press/callout - weird foreground/background colors applied to links. bailing out of callout leaves :hover styles sticking | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Patrick H. Lauke <redux> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | dino, hi, megan_gardner, redux, simon.fraser, smoley, thorton, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 14 | ||
|
Description
Patrick H. Lauke
2021-01-24 04:39:37 PST
This does not reproduce for me using the codepen but I can reproduce it using the page shown in the video: getbootstrap.com. I'm seeing it on iOS 13.6.1 as well as the latest 14.4 beta. (FWIW if anyone wants to dig in, this is all about the background color + snapshot that TextIndicator computes and that we hand to the UITargetedPreview for the long press/context menu/etc. preview; the heuristic is nontrivial, so probably requires debugging to understand what's gone wrong). Separately, I *believe* that :hover sticking is intentional, that's how our touch-hover adaptation works (otherwise things hidden behind hover are unusable). On the :hover sticking...I thought there was a heuristic that checked if there was some form of document mutation (new content appearing etc) - but maybe I'm getting confused with the "generate mouse and click events as result of touch" JS handling. Regarding repro on the codepen - sorry, try the debug view of the pen https://cdpn.io/patrickhlauke/debug/ExgBxwv |