[Webkit-unassigned] [Bug 239486] New: Inline contenteditable elements with `pointer-events: none` receive focus when clicked
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 19 00:00:39 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=239486
Bug ID: 239486
Summary: Inline contenteditable elements with `pointer-events:
none` receive focus when clicked
Product: WebKit
Version: Safari 15
Hardware: Mac (Apple Silicon)
OS: macOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: daniel.p.richards at gmail.com
There seems to be inconsistencies in how inline and block contenteditable elements handle focus when `pointer-events` is set to none.
I've put together some test cases below to demonstrate that it seems to be only inline contenteditable elements that have this issue.
Steps to reproduce:
1. Visit https://codepen.io/talldan/pen/RwxEzwg. All elements in this demo have been set to `display: none`
2. Try clicking the link '1. Link (Not contenteditable)' and observe that focus correctly doesn't occur on this inline interactive element.
3. Try clicking the link '2. Link (Contenteditable)' and observe that it receives focus (which is inconsistent with the previous step).
4. Try clicking the span '3. Span (Contenteditable)' and observe that it receives focus (this doesn't just happen for links).
5. Try clicking the div '4. Div (Contenteditable)' and observe that it doesn't receive focus (inconistent with step 4).
6. Try clicking the span '5. Block span (Contenteditable)' (a span that has been set to display: block) and observe that it doesn't receive focus.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220419/96206229/attachment.htm>
More information about the webkit-unassigned
mailing list