Created attachment 277365 [details] Screenshot showing text selection error. Navigate to this URL: https://mozilla.github.io/pdf.js/web/viewer.html And double-click on the word "Languages" in the title. In Safari (and Chrome), word Languages is selected, but so is the word "Dynamic" from the previous line, and the name "Andreas" from the following line. Screenshot attached. This affects any page that uses the Mozilla pdf.js library.
The PDF viewer renders the PDF to canvas, but places invisible elements on top of each word (presumably for selection / a11y)
Created attachment 278015 [details] Reduction
Created attachment 278016 [details] Edge
Created attachment 278017 [details] Chrome
Created attachment 278075 [details] Screenshot from Chrome
Created attachment 278076 [details] Screenshot from Edge
Created attachment 278099 [details] Screenshot from Firefox
Ah, this appears to be a classic bug we have which is that we don't break words at the end of block element boundary. I think there's an old bug about it somewhere...