Open Bug 1625298 Opened 4 years ago Updated 5 months ago

caret positioned on the left when focus is set on a contenteditable node with text-align set to center

Categories

(Core :: DOM: Editor, defect, P3)

76 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: thomas, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36

Steps to reproduce:

Set text-align to center on a contenteditable div. Then click on it.

Actual results:

Caret is positioned on the left of the div.

Expected results:

Caret should be positioned in the middle of the give (which happens as soon as you start typing)

Attached file simple htm example

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Editor
Product: Firefox → Core
Priority: -- → P3

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

I'm surprised that this bug, reported 4 years ago, is still no resolved.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: