Bug 258537

Summary: Selection looks bad, as it selects more than just text
Product: WebKit Reporter: println.lb
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: ahmad.saleem792, bfulgham, karlcow, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
Attachments:
Description Flags
Attachment shows a screenshot of me when I select all using the shortcut [CMD + A]. It selects more elements than it should, as it selects seemingly random html elements and not just text.
none
rendering in safari, firefox, chrome none

Description println.lb 2023-06-26 15:44:57 PDT
Created attachment 466828 [details]
Attachment shows a screenshot of me when I select all using the shortcut [CMD + A]. It selects more elements than it should, as it selects seemingly random html elements and not just text.

The select all (CMD + A) on safari selects more than just text. It selects random html elements as well, and overall, looks unappealing.
Comment 1 Alexey Proskuryakov 2023-06-26 19:02:38 PDT
*** Bug 258538 has been marked as a duplicate of this bug. ***
Comment 2 println.lb 2023-06-28 11:15:52 PDT
How can I resolve this issue?
Comment 3 Radar WebKit Bug Importer 2023-07-03 15:45:15 PDT
<rdar://problem/111708963>
Comment 4 Ahmad Saleem 2023-11-30 02:12:19 PST
I think it is intended behavior of 'ungapped' selection, which is due to macOS system behavior. Unless if I am missing something?

@Alan & @Karl - anything from your side?
Comment 5 Karl Dubost 2023-11-30 03:41:50 PST
Created attachment 468818 [details]
rendering in safari, firefox, chrome

I think the report is about the large area being highlighted compared to Firefox and Chrome.
Hmm I don't have an answer on the why it is like it is.
Comment 6 zalan 2023-11-30 05:49:00 PST
(In reply to Karl Dubost from comment #5)
> Created attachment 468818 [details]
> rendering in safari, firefox, chrome
> 
> I think the report is about the large area being highlighted compared to
> Firefox and Chrome.
> Hmm I don't have an answer on the why it is like it is.
as Ahmad said, standard macOS behavior where line and block gaps are also painted selected.