Bug 235571

Summary: Element with contenteditable attribute misbehaves in flex container
Product: WebKit Reporter: Kevin Sjöberg <mail>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bdakin, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Mac (Apple Silicon)   
OS: macOS 12   

Kevin Sjöberg
Reported 2022-01-25 04:21:22 PST
Steps to reproduce: 1. Visit https://jsfiddle.net/opwgyrun/5/ 1. Click the word "TEST". It will have focus and become editable. 2. Now click outside the word "TEST", the element does not lose focus. Clicking far away from the word "TEST" makes it lose focus correctly, but not in close proximity. I've experimented with giving the container different display values such as grid and inline-flex, but they all cause the same issue, although in varying degrees.
Attachments
Kevin Sjöberg
Comment 1 2022-01-25 04:24:04 PST
I've verified this issue on the latest build of WebKit at the time of writing, build r288544.
Radar WebKit Bug Importer
Comment 2 2022-02-01 04:22:15 PST
Beth Dakin
Comment 3 2023-08-29 11:52:54 PDT
Does this still reproduce? I cannot reproduce using Safari on the latest macOS Sonoma seed.
zalan
Comment 4 2023-08-29 14:59:46 PDT
I am still able to reproduce it on trunk WebKit.
Note You need to log in before you can comment on or make changes to this bug.