|Summary:||REGRESSION (Safari 15.4): SVG Text Selection not usable due to selection rect not positioned properly, affects Internet Archive books|
|Product:||WebKit||Reporter:||Drini Cami <cdrini>|
|Severity:||Critical||CC:||ahmad.saleem792, megan_gardner, mmaxfield, sabouhallawa, simon.fraser, webkit-bug-importer, wenson_hsieh, z233, zalan, zimmermann|
|Hardware:||iPhone / iPad|
Description Drini Cami 2022-07-18 08:58:55 PDT
Created attachment 460975 [details] Sample HTML with SVG for reproducing the error To Repro: 1. Go on an iPhone with Safari 15.4 or 15.5 2. Visit the attached file 3. Long press on "selecting" Expected: A blue rectangle with handles appears over the word "selecting" (This is what happens in Safari 15.3) Actual: A blue rectangle appears at the top of the SVG (Safari 15.4, 15.5) Note this is similar to https://bugs.webkit.org/show_bug.cgi?id=108837 , but not the same. This is happening for *all* SVGs, not just certain viewports/scalings of SVGs.
Comment 1 Drini Cami 2022-07-18 09:06:33 PDT
Created attachment 460976 [details] Photos showing behaviour in Safari 15.3, 15.4, and 15.5
Comment 2 Drini Cami 2022-07-18 09:10:35 PDT
This has currently broken our text selection mechanism on Internet Archive books. We're getting user complaints about being unable to select text after users updated their iOS devices. Eg In other browsers and Safari 15.3, you can long press on a word to select it here: https://archive.org/details/goodytwoshoes00newyiala/page/n1/mode/1up .
Comment 3 Alexey Proskuryakov 2022-07-18 17:48:21 PDT
This reproduces on macOS too, including with STP 149.
Comment 5 Ahmad Saleem 2023-05-21 17:19:01 PDT
I think this seems to work fine now in Safari 16.5. @ap - can you reconfirm my testing, I checked on iPhone 13 Pro Max as well with this test case and long press on 'Selecting' works.