Bug 15300 - Background color drawn beyond end of line when selecting text
Summary: Background color drawn beyond end of line when selecting text
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 18:45 PDT by Sridhar Gurivireddy
Modified: 2024-04-24 17:52 PDT (History)
3 users (show)

See Also:


Attachments
open the file in safari and select some text (568 bytes, text/html)
2007-09-27 18:46 PDT, Sridhar Gurivireddy
no flags Details
screenshot of Webkit marking text way (74.46 KB, image/gif)
2008-02-24 04:58 PST, Robert Blaut
no flags Details
screenshot of Opera marking text way (55.87 KB, image/gif)
2008-02-24 05:00 PST, Robert Blaut
no flags Details
Screenshot of Gecko marking text way (56.07 KB, image/gif)
2008-02-24 05:02 PST, Robert Blaut
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sridhar Gurivireddy 2007-09-27 18:45:31 PDT
Safari deviates from other browsers when it comes to drawing background color when selecting text. This makes it really ugly when using online office suites like Google docs

Open the attached file and select the text. Safari draws background color all over the line. It looks fine for this example, but when you are editing a document online (like in Google Docs), it looks really ugly
Comment 1 Sridhar Gurivireddy 2007-09-27 18:46:15 PDT
Created attachment 16425 [details]
open the file in safari and select some text
Comment 2 David Kilzer (:ddkilzer) 2007-09-28 06:07:50 PDT
Looks fine on Safari 3 Public Beta v. 3.0.3 (522.12.1) with a local debug build of WebKit r25776 on Mac OS X 10.4.10 (8R218).

Could you post a screenshot?  Have you changed your default highlight color on Windows?

Comment 3 David Kilzer (:ddkilzer) 2007-09-28 06:09:58 PDT
Actually, I think this behavior is expected (that the rest of the line to the right edge of the window is highlighted when you drag downward).

Could you attach a screenshot of the issue in Google Docs?

Comment 4 Robert Blaut 2008-02-24 04:58:39 PST
Created attachment 19318 [details]
screenshot of Webkit marking text way

(In reply to comment #3)
> Actually, I think this behavior is expected (that the rest of the line to the
> right edge of the window is highlighted when you drag downward).
> 
> Could you attach a screenshot of the issue in Google Docs?
> 

I can confirm this bug. Generally text highlighting in Webkit looks really bad in comparison to other browsers like Firefox and Opera.
Comment 5 Robert Blaut 2008-02-24 05:00:46 PST
Created attachment 19319 [details]
screenshot of Opera marking text way
Comment 6 Robert Blaut 2008-02-24 05:02:02 PST
Created attachment 19320 [details]
Screenshot of Gecko marking text way
Comment 7 Eric Seidel (no email) 2008-07-03 22:52:11 PDT
My understanding is that this is just the mac way of highlighting text.  Try highlighting text in TextEdit, you'll see the highlight extend to the end of the line, even if there is a return on that line.