[Webkit-unassigned] [Bug 33950] New: contentEditable with "position:relative" paragraphs is buggy
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 21 06:47:51 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=33950
Summary: contentEditable with "position:relative" paragraphs is
buggy
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: L.Plant.98 at cantab.net
With "position:relative" set for paragraphs, editing content using
contentEditable=true produces weird behaviour and bugs, and even crashes
sometimes.
The simplest test case is something like this: In a paragraph, type [Enter] 1
[Enter] 2 [Enter] 3 [Enter] 4 [Up] [Up] [Backspace]
The result is that the two paragraphs after the caret are switched and merged,
with a stray <br> appearing.
A test page is here: http://lukeplant.me.uk/webkitbug.html
I found this bug in a very recent Chrome 4 on Linux, and Safari 4 on Windows,
which is why I'm filing here, since I presume this must be a WebKit bug. I'm
still building the most recent WebKit to test it out. The bug was not present
in Safari 3.1, I think. Opera and Firefox handle this fine.
By the way, the reason for wanting to put "position:relative" on paragraphs
like this is to develop a text editor that uses ':before' to be able to
indicate things like any class that is applied to the text. See
http://bitbucket.org/spookylukey/semanticeditor/wiki/Home for screen shot.
position:relative is needed to establish a containing box for the ":before"
element, so that it can be relatively positioned. Without this, it is
difficult to put additional information inside the editing box.
--
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