Bug 64962 - Cannot click to position the caret to the right of an image with display:block style
Summary: Cannot click to position the caret to the right of an image with display:bloc...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Unspecified
: P2 Normal
Assignee: Enrica Casucci
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-07-21 11:22 PDT by Enrica Casucci
Modified: 2011-07-21 11:46 PDT (History)
0 users

See Also:


Attachments
Patch (6.46 KB, patch)
2011-07-21 11:29 PDT, Enrica Casucci
hyatt: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrica Casucci 2011-07-21 11:22:23 PDT
Try the following test case:

<div contentEditable="true">hello<img style="display:block;" src="http://images.apple.com/macosx/images/productheader_title.png">world</div>

Click to the left of the image. You'll see the caret being places to the left of the image.
Now try clicking to the right of the image. The caret is always placed to the left.
You can use the arrow keys to move to the right of the image, but the mouse click won't work.
This behaves as expected if the image has display:inline style.
Comment 1 Enrica Casucci 2011-07-21 11:22:36 PDT
<rdar://problem/9446343>
Comment 2 Enrica Casucci 2011-07-21 11:29:45 PDT
Created attachment 101613 [details]
Patch
Comment 3 Dave Hyatt 2011-07-21 11:34:13 PDT
Comment on attachment 101613 [details]
Patch

r=me
Comment 4 Enrica Casucci 2011-07-21 11:46:45 PDT
Committed revision 91481.