Issue originated in Chromium bugs, see http://code.google.com/p/chromium/issues/detail?id=3527 IE and FF selects only the region inside the red box but Chrome/Safari does select the region outside. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <body> <div style="margin: 20px auto; width: 740px;font-family: 'Lucida Grande', 'Tahoma', sans-serif; border: 2px solid red">Only area with in div region should get selected. But the region that lies outside the div also gets selected.</div> </body> </html> See the attached reductions.
Created attachment 24759 [details] Reduction
Created attachment 24760 [details] Reduction (quirks mode)
Isn't this intentional behavior of WebKit / Safari to have gapless selection, hence, we have empty space with 'selection' color painted as well, while Chrome now has 'gapped' selection, so only have selection around text? Can someone please confirm whether we need to fix it or not? Or we can mark this duplicate of other 'gapped' selection bug?
(In reply to Ahmad Saleem from comment #3) > Isn't this intentional behavior of WebKit / Safari to have gapless > selection, hence, we have empty space with 'selection' color painted as > well, while Chrome now has 'gapped' selection, so only have selection around > text? Correct!