Caret painting does not cope with :before/after content
Reported by
gregan.k...@gmail.com,
Jul 27 2016
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0 Example URL: https://jsfiddle.net/tyjx5m0e/7/ Steps to reproduce the problem: 1. Create a content editable div 2. add some text 3. add a span tag inside the the div 4. try to step to 0 position with the caret in span tag What is the expected behavior? It should be able to set the caret position to 0 inside span tag. What went wrong? instead of caret placed at the front of the span, inside it, the caret paced after the first letter. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? No Does this work in other browsers? Yes Chrome version: <Copy from: 'about:version'> Channel: n/a OS Version: 10.0 Flash Version: Shockwave Flash 22.0 r0 When we want to go with the caret to the next node, we are unable to set the caret position to 0. So if we go inside, or leave the span tag, the caret step one more as expected.
,
Jul 28 2016
Can reproduce in Canary 54.0.2809.0. The caret also disappears when trying to place it at the end of the span. Also note that the caret behaves correctly when the content property in span:before/after is removed.
,
Jul 28 2016
I tested in 52 version. I removed a span:before/after content, and sill unable to writing at position 0 in contenteditable inline element and also unable to writing into next element at position 0. The next element was a text node, when i tested.
,
Oct 12 2016
,
Oct 12 2016
,
Oct 4 2017
,
Oct 4
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 5
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by dtapu...@chromium.org
, Jul 27 2016