Bug 26260 - Caret positioning in contenteditable elements with mouse/keyboard fails when css :after is used
Summary: Caret positioning in contenteditable elements with mouse/keyboard fails when ...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-08 15:45 PDT by Nils Jeisecke
Modified: 2020-06-22 22:37 PDT (History)
8 users (show)

See Also:


Attachments
Simple HTML example showing the problem (906 bytes, application/xhtml+xml)
2009-06-08 15:46 PDT, Nils Jeisecke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Jeisecke 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.
Comment 1 Nils Jeisecke 2009-06-08 15:46:31 PDT
Created attachment 31067 [details]
Simple HTML example showing the problem
Comment 2 Nikita Vasilyev 2020-06-22 22:37:56 PDT
Works fine. This has been likely fixed a while ago.