Created attachment 382482 [details] Screenshot When text is selected inside an overflow:scroll element, and then that scroller is scrolled so that the selected text is no longer visible, the selection highlight is still drawn, outside the clip. For example: 1. Visit https://jsfiddle.net/s82hfLkn/1/show. 2. Select "Hello" and then scroll the pink scrolling div. 3. Wait until the div has stopped moving. At this point, the selection highlight will be drawn above the div, even though the selected text is now clipped out. See the attached screenshot.