Bug 62550 - Can't type text when input element is shrunken by a CSS rule
Summary: Can't type text when input element is shrunken by a CSS rule
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Ryosuke Niwa
URL: http://jsfiddle.net/M3wVp/
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2011-06-13 10:29 PDT by Rusty
Modified: 2011-06-15 10:11 PDT (History)
7 users (show)

See Also:


Attachments
adds a regression test (3.06 KB, patch)
2011-06-15 10:03 PDT, Ryosuke Niwa
dglazkov: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rusty 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.
Comment 1 Rusty 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.
Comment 2 Ryosuke Niwa 2011-06-14 10:43:31 PDT
Levi, is this a duplicate of the bug 38696?
Comment 3 Levi Weintraub 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.
Comment 4 Ryosuke Niwa 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?
Comment 5 Alexey Proskuryakov 2011-06-14 11:30:26 PDT
Works correctly for me in Safari+WebKit r88246, too (I could reproduce in Safari 5.0.5).
Comment 6 Alexey Proskuryakov 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.
Comment 7 Rusty 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).
Comment 8 Ryosuke Niwa 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 :)
Comment 9 Ryosuke Niwa 2011-06-15 10:03:36 PDT
Created attachment 97315 [details]
adds a regression test
Comment 10 Ryosuke Niwa 2011-06-15 10:11:57 PDT
Committed r88951: <http://trac.webkit.org/changeset/88951>