Caret not centered on focuc in empty contenteditable with centered content
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
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.
Comment 1•2 years ago
|
||
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!
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Caret position is managed by the layout module.
Comment 3•2 years ago
|
||
I'm sure I've seen this before..... ah, yes: bug 885406.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•