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.
Created attachment 460976 [details] Photos showing behaviour in Safari 15.3, 15.4, and 15.5
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 .
This reproduces on macOS too, including with STP 149.
<rdar://problem/97261597>
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.