[Webkit-unassigned] [Bug 35935] contentEditable with <PRE> not wrapping correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 18 12:27:31 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=35935





--- Comment #5 from Pravin D <pravind.2k4 at gmail.com>  2012-06-18 12:27:30 PST ---
The cause for the issue is that on webkit we always set word-wrap:break-word for all containers having the attribute contenteditable = true. This not so on FF, IE or Opera. This can be seen by running the code snippet below.

<div contenteditable="true" style="height:50px;overflow:auto;width:500px;">
SOMEFILLERTEXTSOMEFILLERTEXTSOMEFILLERTEXTSOMEFILLERTEXTSOMEFILLERTEXT
</div>


Setting the word-wrap:break-word for contenteditable=true was added in the change list : 
http://trac.webkit.org/changeset/12984/trunk/WebCore/khtml/html/HTMLElementImpl.cpp

If we are going to fix it we should either remove word-wrap:break-word for editable containers(heavy re-baseline will be req ) or just fix for the some special case.

However Ryosuke Niwa's opinion is req. on this....

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list