Bug 108675

Summary: Unable to paste twice in input field when specific CSS present
Product: WebKit Reporter: Elias Dawson <elias.echols>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: commit-queue, enrica, forms-bugs, mifenton, rniwa, tkent, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.7   
URL: http://jsfiddle.net/x2aYW/
Attachments:
Description Flags
Patch none

Description Elias Dawson 2013-02-01 12:26:22 PST
This specific combination of CSS properties on an HTML input field results in pasting text not working after the first time. The first paste works as expected, but subsequent pastes do not display.

Steps to Reproduce:
1. Visit: http://jsfiddle.net/x2aYW/
2. Paste some text into the input text field
3. Try to paste again

Actual Result:
Text from second paste is not displayed.

Expected Result:
Test from second paste is displayed in the input field.

Bug found today in Chrome 24.0.1312.57, Safari Version 6.0.2 (7536.26.17), and WebKit Nightly 537.30+


input {
	    padding: 15px;
	    border-style: none;
	    box-sizing: border-box;
	    font-size: 14px;
	    height: 1.8em;
}

The following changes to the CSS have been found to resolve the problem:

Removing any single CSS property
Changing border-style to any value besides none
Changing the padding value to less than 13px
Changing the font-size value to greater than 17px
Changing the height value to greater than 2.5em

I created a JS fiddle to demonstrate the problem. http://jsfiddle.net/x2aYW/
Comment 1 Ryosuke Niwa 2013-02-03 18:27:04 PST
Confirmed.
Comment 2 Radar WebKit Bug Importer 2013-02-03 18:27:55 PST
<rdar://problem/13141644>
Comment 3 Sukolsak Sakshuwong 2013-04-11 16:12:30 PDT
Created attachment 197692 [details]
Patch
Comment 4 WebKit Commit Bot 2013-04-11 17:07:29 PDT
Comment on attachment 197692 [details]
Patch

Clearing flags on attachment: 197692

Committed r148251: <http://trac.webkit.org/changeset/148251>
Comment 5 WebKit Commit Bot 2013-04-11 17:07:32 PDT
All reviewed patches have been landed.  Closing bug.