Selection is no longer painted for text with CSS overflow:hidden. Open the page with the following markup in Safari: [[ <style> .test { text-decoration: underline; } .test::selection { background-color: blue; color: white; } .hidden { overflow: hidden; } </style> <p class="test">First line of text.</p> <p class="test hidden">Second line of text</p> ]] Click and drag from the word "Second" in the second line of text to the end of the line. No selection highlight is drawn. Compare to the behavior of clicking and dragging from the word "First" in the first line to the end of that line. I would have expected the same selection behavior for both lines. Additionally, if you focus the page and choose Edit > Select All then only the first line and the gap between the first and second line are painted as selected. That is, the second line of text is not painted as selected. I would have expected all lines of text to have been painted as selected. Weirdly, if you go through the motions to select the second line of text (e.g. click and drag from the word "Second" in the second of line text to the end of the line) then click where the selection would have been painted then the selection will be painted.
<rdar://problem/45557072>
Created attachment 353090 [details] Example For convenience, here is a file with the markup given in comment #0.
This regression was caused by <http://trac.webkit.org/changeset/237255> (bug #189833)
*** This bug has been marked as a duplicate of bug 190899 ***
Reopening to attach new patch.
Whoops, meant to attach a patch to the other bug. *** This bug has been marked as a duplicate of bug 190899 ***