Created attachment 463731 [details] The caret fills the vertical space and is misplaced For an empty element with contenteditable="true", if it also has display: inline-block and a ::before pseudo element, when we focus the element to start editing, we'll notice that the input caret fills the whole vertical space and is misplaced. See the reproduction: https://jsbin.com/gemedokovu/1/edit?html,css,js,output
I am not able to reproduce this bug in Safari Technology Preview 158 and it shows small caret size and also blinking before # similar to Chrome Canary 110 and Firefox Nightly 109. It is broken in Safari 16.1 though.
This might have fixed it - https://github.com/WebKit/WebKit/commit/11d258f9db329fa814a7a5466d2a9bae81a6025d
Yes I can confirm it's already fixed in Safari Technology Preview Release 158. Thank you!
*** This bug has been marked as a duplicate of bug 135914 ***