Bug 67151
Summary: | Text selection rects render incorrectly inside spans | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matthew Delaney <mdelaney7> |
Component: | Layout and Rendering | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/10041115>
mitz
This is caused by the 10px bottom padding on the span containing the “quartz-dev” link on the first line.
mitz
…and in general, WebKit’s behavior here mimics NSTextView’s.
Prashant Nevase
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.