Bug 51290 - REGRESSION (r72052): Placeholder text does not wrap in a textarea
Summary: REGRESSION (r72052): Placeholder text does not wrap in a textarea
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Normal
Assignee: Nobody
URL: http://jsfiddle.net/6hb7g/
Keywords: InRadar, Regression
: 67834 (view as bug list)
Depends on: 64253
Blocks: 54402 63927
  Show dependency treegraph
Reported: 2010-12-18 10:49 PST by Paul Irish
Modified: 2011-09-09 18:45 PDT (History)
9 users (show)

See Also:

Test Case (160 bytes, text/html)
2010-12-18 23:18 PST, Daniel Bates
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Irish 2010-12-18 10:49:36 PST
When using <textarea placeholder="long long value which ..."> the text does not wrap.

The spec isn't very clear about correct handling of line-wrapping, but I can't imagine this is correct behavior.

Test case: http://jsfiddle.net/6hb7g/o
Comment 1 Daniel Bates 2010-12-18 23:15:22 PST
Confirmed changeset 72052 <http://trac.webkit.org/changeset/72052> (Bug #49452) regressed placeholder text wrapping in <textarea>.
Comment 2 Daniel Bates 2010-12-18 23:18:30 PST
Created attachment 76954 [details]
Test Case

A derivative of <http://jsfiddle.net/6hb7g/>.
Comment 3 Alexey Proskuryakov 2010-12-19 12:55:38 PST
Regression -> P1
Comment 4 Adele Peterson 2010-12-20 10:34:35 PST
ok.  I'll have to figure something out.  I really don't want to go back to swapping the text in and out, but maybe we do need a RenderText object for the placeholder to get this right.
Comment 5 Adele Peterson 2010-12-20 10:46:11 PST
Comment 6 Adele Peterson 2010-12-20 14:37:42 PST
Do we know of any real world sites that have placeholders that hit this bug?
Comment 7 Stefan Pauwels 2011-02-14 05:05:41 PST
One real world site that hits this bug: cuuks.com
Add 2 or more ingredients on http://cuuks.com/combine
Chrome does not wrap the text (thereby hiding part of it), while firefox does.
Comment 8 David Bourguignon 2011-06-07 08:22:59 PDT
an other public url is for instance : http://www.mygaytrip.com/guide/lords-south-beach-hotel

The text area at the end it correct in current Safari (5.0.5) but break in nightly webkit
Comment 9 Kent Tamura 2011-07-11 00:18:19 PDT
Chromium bug: http://code.google.com/p/chromium/issues/detail?id=76317
Comment 10 Kent Tamura 2011-07-13 19:17:54 PDT
Fixed by http://trac.webkit.org/changeset/90971
Comment 11 Kent Tamura 2011-09-09 18:45:35 PDT
*** Bug 67834 has been marked as a duplicate of this bug. ***