RESOLVED WORKSFORME 26260
Caret positioning in contenteditable elements with mouse/keyboard fails when css :after is used
https://bugs.webkit.org/show_bug.cgi?id=26260
Summary Caret positioning in contenteditable elements with mouse/keyboard fails when ...
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.