Bug 108243 (ChrisTauziet)

Summary: Text cursor stops working when translate3d is applied
Product: WebKit Reporter: Christophe Tauziet <christophe>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Major CC: bfulgham, info, radu, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://www.tauziet.com
Attachments:
Description Flags
Example of the bug
none
Screencast of the bug in chrome on OSx none

Description Christophe Tauziet 2013-01-29 16:07:03 PST
Hi all,

I'm facing an issue with WebKit that is quite annoying. The following issue occurs in Safari and Chrome for Mac (haven't tested it anywhere else). 

If you have an <input> text field inside an element that has a translate3D transformation, using the left/right arrow keys of your keyboard won't move the cursor while editing the content of the text field.

There's a thread on Stack Overflow where other people are facing the same issue, and try to find a workaround using JS. 
http://stackoverflow.com/questions/7347241/caret-text-cursor-stops-when-translate3d-is-applied

Please let me know whenever this issue gets fixed.

Christophe Tauziet
christophe@tauziet.com
Comment 1 Simon Fraser (smfr) 2013-01-30 12:56:38 PST
Does this reproduce with recent WebKit nightly builds? Similar to bug 15671, possibly fixed via bug 103955.
Comment 2 info 2013-02-18 00:35:04 PST
Created attachment 188808 [details]
Example of the bug
Comment 3 info 2013-02-18 00:35:10 PST
Hi all,

I can confirm that this bug and it can be observed in the attached example (sorry for the odd styles, it's pulled from a build). 

Try typing in the example, using your direction keys and hovering the mouse over the field.

Kind regards,

Alan
Comment 4 Simon Fraser (smfr) 2013-02-18 11:13:51 PST
Please attach the test content you used to make your screenshot.
Comment 5 info 2013-02-18 11:16:00 PST
Hi Simon,

Sorry but I'm not sure what you mean? The attachment is a HTML file that includes all the content within it to replicate the bug.

Am I missing something?

Thanks,

Alan
Comment 6 Simon Fraser (smfr) 2013-02-18 11:35:51 PST
Sorry, I assumed it was a screenshot!
Comment 7 Simon Fraser (smfr) 2013-02-18 11:36:26 PST
The caret blinks just fine for me in a recent WebKit build on Mac.
Comment 8 info 2013-02-18 11:43:06 PST
Odd, I'm using the latest stable Chrome build and am experiencing the issue when using the webkit translate3D property. 

I'll attach a quick screencast so you can see what I mean. Throughout the cast I'm pressing the direction buttons (left and right) to no effect.

This occurs for me for Chrome on OSx (as per screencast) and on my Ubuntu box.

Any thoughts?
Comment 9 info 2013-02-18 11:43:41 PST
Created attachment 188925 [details]
Screencast of the bug in chrome on OSx
Comment 10 Radu Brehar 2013-07-23 02:35:29 PDT
I can confirm the bug manifests in mobile webkits as well.
The problem is that you cannot put an <input> inside a container with translate3d.

Please see details at
http://stackoverflow.com/questions/17337584/strange-behavior-with-input-when-inside-translated-div-on-mobile-webkit
where you can also find an example with the bug.

Regards,
Radu.
Comment 11 Simon Fraser (smfr) 2013-07-23 13:26:50 PDT
Please report "mobile webkits" bugs to the appropriate vendor.
Comment 12 Radu Brehar 2013-07-23 22:04:50 PDT
Unfortunately the bug is reproducible in all "mobile webkits" so I thought this is the best place for it.
Anyway, if it doesn't concern anyone from webkit, just ignore it. Besides, I haven't found any public bug tracker from Apple to report it. I have reported it in the Android tracker, so let's hope we'll get a better response there.

Thanks,
Radu.
Comment 13 Brent Fulgham 2022-07-13 13:58:04 PDT
This does not appear to be an issue in Safari 15.