Bug 26260

Summary: Caret positioning in contenteditable elements with mouse/keyboard fails when css :after is used
Product: WebKit Reporter: Nils Jeisecke <jeisecke>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: enrica, jeisecke, justin.garcia, morrita, nvasilyev, rniwa, tkent, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Simple HTML example showing the problem none

Nils Jeisecke
Reported 2009-06-08 15:45:26 PDT
Consider the following editable paragrahp <div contenteditable="true"> <p><span class="x">6</span>Try to click before the 'T', won't work.</p> </div> with the following styles .x { display: inline; font-weight: bold; color: green; } .x:before { content: "("; } .x:after { content: ") "; } you cannot click before the 'T'. Remove the :after style and it works.
Attachments
Simple HTML example showing the problem (906 bytes, application/xhtml+xml)
2009-06-08 15:46 PDT, Nils Jeisecke
no flags
Nils Jeisecke
Comment 1 2009-06-08 15:46:31 PDT
Created attachment 31067 [details] Simple HTML example showing the problem
Nikita Vasilyev
Comment 2 2020-06-22 22:37:56 PDT
Works fine. This has been likely fixed a while ago.
Note You need to log in before you can comment on or make changes to this bug.