RESOLVED FIXED62550
Can't type text when input element is shrunken by a CSS rule
https://bugs.webkit.org/show_bug.cgi?id=62550
Summary Can't type text when input element is shrunken by a CSS rule
Rusty
Reported 2011-06-13 10:29:16 PDT
If an input shrinks or otherwise moves out from under the cursor onfocus, the input remains focused but cannot receive keyboard input. The linked JSFiddle demonstrates the issue. This has been tested on the webkit 1.3.3 release and 534.30 (branches/chromium/742@88085) in Google Chrome 12.0.742.91 beta.
Attachments
adds a regression test (3.06 KB, patch)
2011-06-15 10:03 PDT, Ryosuke Niwa
dglazkov: review+
Rusty
Comment 1 2011-06-14 08:22:34 PDT
FYI, both of the builds I tested are using GTK so it may or may not be limited to GTK builds.
Ryosuke Niwa
Comment 2 2011-06-14 10:43:31 PDT
Levi, is this a duplicate of the bug 38696?
Levi Weintraub
Comment 3 2011-06-14 11:22:10 PDT
I can't actually reproduce this with 13.0.782.20. Clicking on the green box focuses the input field and keyboard input is properly handled.
Ryosuke Niwa
Comment 4 2011-06-14 11:28:22 PDT
(In reply to comment #3) > I can't actually reproduce this with 13.0.782.20. Clicking on the green box focuses the input field and keyboard input is properly handled. Ah, ok. Maybe we should just add a test for this then?
Alexey Proskuryakov
Comment 5 2011-06-14 11:30:26 PDT
Works correctly for me in Safari+WebKit r88246, too (I could reproduce in Safari 5.0.5).
Alexey Proskuryakov
Comment 6 2011-06-14 11:31:02 PDT
> Ah, ok. Maybe we should just add a test for this then? I marked the bug as resolved without seeing your comment, but please feel free to re-open if a test needs to be landed.
Rusty
Comment 7 2011-06-14 11:36:28 PDT
Hmm, I just tried in Chromium 14.0.792.0 (Developer Build 88942 Linux) Ubuntu 10.04 and it does work correctly. I guess it was fixed somewhere between 534.30 (branches/chromium/742@88085) and 535.1 (trunk@88697).
Ryosuke Niwa
Comment 8 2011-06-14 11:40:10 PDT
(In reply to comment #6) > > Ah, ok. Maybe we should just add a test for this then? > > I marked the bug as resolved without seeing your comment, but please feel free to re-open if a test needs to be landed. Let's add a test to ensure we don't regress in the future :)
Ryosuke Niwa
Comment 9 2011-06-15 10:03:36 PDT
Created attachment 97315 [details] adds a regression test
Ryosuke Niwa
Comment 10 2011-06-15 10:11:57 PDT
Note You need to log in before you can comment on or make changes to this bug.