Bug 135914

Summary: contentEditable caret is left aligned instead of centered when :before pseudoelement is used
Product: WebKit Reporter: Max Vujovic <mvujovic>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, bfulgham, enrica, jacobg, justice360, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://codepen.io/anon/pen/CEGim
See Also: https://bugs.webkit.org/show_bug.cgi?id=244977

Description Max Vujovic 2014-08-13 16:28:24 PDT
My colleague ran into this while making a UIWebView based app. Repros in Safari Nightly.

Reproduction:
http://codepen.io/anon/pen/CEGim
Comment 1 Alexey Proskuryakov 2014-08-13 19:08:21 PDT
See also: bug 20129 (which has similar symptoms, but is no longer occurring). Possibly bug 55886 too.
Comment 2 Radar WebKit Bug Importer 2015-09-15 13:22:22 PDT
<rdar://problem/22707551>
Comment 3 Brent Fulgham 2015-11-30 16:50:18 PST
It looks like Chrome, Firefox, and Safari all behave differently than expected. See <https://w3c.github.io/editing/contentEditable.html> We should get this behavior standardized before attempting to implement a change in behavior.
Comment 4 Ryosuke Niwa 2015-11-30 16:53:17 PST
I don't think we can ever standardize how the insertion point is rendered since its behavior is platform dependent.  Also, there is no way the editing API spec will be standardized anytime soon so I don't think we should gate fixing these bugs on the standardization effort.
Comment 5 EWS 2022-10-10 00:05:37 PDT
Committed 255333@main (11d258f9db32): <https://commits.webkit.org/255333@main>

Reviewed commits have been landed. Closing PR #5164 and removing active labels.
Comment 6 Ahmad Saleem 2022-11-26 07:33:28 PST
*** Bug 248345 has been marked as a duplicate of this bug. ***