Bug 249500 - Counters are always generated content and cannot be selected
Summary: Counters are always generated content and cannot be selected
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-12-16 14:26 PST by Ahmad Saleem
Modified: 2022-12-19 06:47 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2022-12-16 14:26:29 PST
Hi Team,

Just going through Blink's commit and trying to improve contenteditable support, I came across another failing test case:

https://jsfiddle.net/u7r2qw0f/

^ Trying to select the text, you will have selection on 2,3 as well while Chrome Canary 110 & Firefox Nightly 110 does not show text selection.

Blink Commit - https://chromium.googlesource.com/chromium/src.git/+/9d8a90f8a7f49c673bcd4e369efc84c62cc18285

Webkit GitHub Source - Add this in RenderCounter.h:

bool canBeSelectionLeaf() const final { return false; }

_____

Just raising bug so this can be fixed.

Thanks!
Comment 1 EWS 2022-12-19 06:46:22 PST
Committed 258080@main (dbcaeff80040): <https://commits.webkit.org/258080@main>

Reviewed commits have been landed. Closing PR #7784 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2022-12-19 06:47:17 PST
<rdar://problem/103514139>