Closed Bug 1864609 Opened 2 years ago Closed 2 years ago

Caret not centered on focuc in empty contenteditable with centered content

Categories

(Core :: Layout: Block and Inline, defect)

Firefox 121
defect

Tracking

()

RESOLVED DUPLICATE of bug 885406

People

(Reporter: philippe, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Steps to reproduce:

On this minimal reproductible example :
https://jsfiddle.net/Imabot/nh0gu4bd/4/
The caret starts on the upper left corner. As soon a you enter text, the caret is centered.

Actual results:

The caret starts on the upper left corner. As soon a you enter text, the caret is centered.

Expected results:

The caret is expected to be centered at startup.

Hi Philippe,

Using the example you have linked above, the caret is displayed in the bottom-left corner on my end, after typing it jumps to the center as you've mentioned.

I'm setting a component in order to get this checked out by the development team.

Thank you for reporting!

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Editor
Ever confirmed: true
Product: Firefox → Core
Version: Firefox 115 → Firefox 121
Severity: -- → S2

Caret position is managed by the layout module.

Component: DOM: Editor → Layout: Block and Inline

I'm sure I've seen this before..... ah, yes: bug 885406.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 885406
Resolution: --- → DUPLICATE
Severity: S2 → S4
You need to log in before you can comment on or make changes to this bug.