Bug 304142

Summary: Conditional Show/ Hide of br element in contenteditable element make caret disappear
Product: WebKit Reporter: michael
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: megan_gardner, rniwa, wenson_hsieh
Priority: P2    
Version: Safari 26   
Hardware: Mac (Apple Silicon)   
OS: macOS 26   

michael
Reported 2025-12-14 08:07:12 PST
Background: Because of certain caret rendering issues (see https://github.com/w3c/editing/issues/498) I found a solution in hiding the br element when the element is empty and focused. This works fine in Chrome, but not in Safari. Repro: https://w3c.github.io/editing/repros/499.html Context: https://github.com/w3c/editing/issues/499 W3C Editing TF Meeting 2025-12-11: > 08:15 seems like an editing/painting bug
Attachments
Note You need to log in before you can comment on or make changes to this bug.