Bug 304142
| Summary: | Conditional Show/ Hide of br element in contenteditable element make caret disappear | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | michael |
| Component: | HTML Editing | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |