NEW311784
GitHub code browser text selection and find broken with "Never use font sizes smaller" setting
https://bugs.webkit.org/show_bug.cgi?id=311784
Summary GitHub code browser text selection and find broken with "Never use font sizes...
Jon
Reported 2026-04-08 18:43:33 PDT
Created attachment 478975 [details] Find interaction recording When using GitHub code browser (say, at https://github.com/apple-oss-distributions/objc4/blob/fb265098298302243cd7eeaa1f63f0ba7786dd9a/runtime/NSObject.mm) text selection and find within the code block are both deeply broken. Text selection is hard to start, and when it does work, it's often misaligned with the actual text, sometimes has visible gaps in the selection between lines, and will often select the wrong text. Like the find result, it seems to get out of sync with the visible content. At the same time, the find selection is completely broken. While it can find text, and the selection rectangles may start aligned with the first result, they quickly break, becoming unaligned with the content. You can see this in the video. STP Release 241 (WebKit 21625.1.12), macOS 26.4.
Attachments
Find interaction recording (10.33 MB, video/quicktime)
2026-04-08 18:43 PDT, Jon
no flags
Alexey Proskuryakov
Comment 1 2026-04-09 08:50:01 PDT
Thank you for the report! Strangely, I cannot reproduce this. I see some minor visual glitches (arguably slightly better in STP than in shipping Safari), but none of the vertical offset issues as in the screen recording.
Jon
Comment 2 2026-04-09 08:59:34 PDT
Yes, Safari seems to work fine, with the same extensions and everything. Looking at it again, it's the "Never use font sizes smaller than" setting, which I have set to 13. Turning that off and it seems to work fine. Toggling that setting I can see it fix itself in real time, and break when I turn it back on.
Jon
Comment 3 2026-04-09 09:03:20 PDT
Shipping Safari is broken in the same way with the setting enabled, I just never synced that particular setting.
Radar WebKit Bug Importer
Comment 4 2026-04-15 18:44:12 PDT
Note You need to log in before you can comment on or make changes to this bug.