New issue
Advanced search Search tips

Issue 632045 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Caret painting does not cope with :before/after content

Reported by gregan.k...@gmail.com, Jul 27 2016

Issue description

UserAgent: 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.
 
Components: -Blink Blink>Editing
Components: -Blink>Editing Blink>TextSelection>Caret
Labels: -OS-Windows OS-All
Status: Available (was: Unconfirmed)
Summary: Caret painting does not cope with :before/after content (was: unable to writing at position 0 in contenteditable inline element)
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.
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.

Comment 4 by tkent@chromium.org, Oct 12 2016

Components: Blink>Editing>Selection

Comment 5 by tkent@chromium.org, Oct 12 2016

Components: -Blink>TextSelection>Caret

Comment 6 by yosin@chromium.org, Oct 4 2017

Labels: Pri-3
Project Member

Comment 7 by sheriffbot@chromium.org, Oct 4

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
Status: Available (was: Untriaged)

Sign in to add a comment