Created attachment 53391 [details] testcase We have code to prop open root editable elements even if they do not contain content. See RenderBlock::hasLineIfEmpty(). But if you programmatically remove content from an editable root it can collapse. See the attached testcase.
All browsers (Safari 16.2, Chrome Canary 111 and Firefox Nightly 110) remove any text typed into editable field and upon clicking "Run Test". Do we need to look into anything else? I am adding @rniwa for his input as well from HTML Editing perspective. Thanks!
This seems to be working now.