Bug 67151

Summary: Text selection rects render incorrectly inside spans
Product: WebKit Reporter: Matthew Delaney <mdelaney7>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: mitz, prashantnevase, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Matthew Delaney
Reported 2011-08-29 13:43:43 PDT
This affects both Chrome and Safari on Lion - didn't try anywhere else. Steps: 1) Go to: http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction/Introduction.html 2) Scroll to the bottom 3) In the "See Also" section, there are 4 list items. The bottom two have spans inside. Select text in either such as "list to discuss". Expected: The blue selection rect covers just the line. Actual: The first line is covered plus some below, the 2nd line appears to only have a small lower sliver selected.
Attachments
Radar WebKit Bug Importer
Comment 1 2011-08-29 13:44:12 PDT
mitz
Comment 2 2011-08-29 13:54:37 PDT
This is caused by the 10px bottom padding on the span containing the “quartz-dev” link on the first line.
mitz
Comment 3 2011-08-29 13:55:31 PDT
…and in general, WebKit’s behavior here mimics NSTextView’s.
Prashant Nevase
Comment 4 2012-07-26 01:44:08 PDT
The same issue is seen in the following page. https://developer.apple.com/library/mac/#documentation/InternetWeb/Conceptual/WebKit_PluginProgTopic/WebKitPluginTopics.html The issue is due to "bottom padding" same as that of earlier mentioned web page.
Note You need to log in before you can comment on or make changes to this bug.