WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
321586
Caret skips content inside a trailing `display: contents` element when ArrowLeft enters the previous paragraph
https://bugs.webkit.org/show_bug.cgi?id=321586
Summary
Caret skips content inside a trailing `display: contents` element when ArrowL...
ocavue
Reported
2026-08-12 03:01:50 PDT
Created
attachment 481027
[details]
the video recording to show this issue Given the following HTML: ```html <!doctype html> <style> [contenteditable] { font-size: 2rem; padding: 1rem; border: 1px solid gray; } </style> <div contenteditable> <p>foo <span style="display: contents">bar</span></p> <p><br></p> </div> ``` Click the empty second line, then press ArrowLeft. Expected: the caret lands after "bar". Actual: it lands after "foo ", skipping "bar". Reproduced with Safari version 26.5.2 and STP Release 248 (WebKit 21625.1.24.19.2). Chrome and Firefox work fine. See the video recording here:
https://gist.github.com/ocavue/0bb6e781204d5cfa9fe8b615a0ed2388
Attachments
the video recording to show this issue
(6.43 MB, video/mp4)
2026-08-12 03:01 PDT
,
ocavue
no flags
Details
The html file to reproduce this issue
(363 bytes, text/html)
2026-08-12 03:02 PDT
,
ocavue
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
ocavue
Comment 1
2026-08-12 03:02:43 PDT
Created
attachment 481028
[details]
The html file to reproduce this issue
Radar WebKit Bug Importer
Comment 2
2026-08-19 03:02:12 PDT
<
rdar://problem/185300722
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug