Bug 40752 - clicking in the body-elements margin should act like clicking in it's padding
Summary: clicking in the body-elements margin should act like clicking in it's padding
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 18:27 PDT by Ojan Vafai
Modified: 2011-08-15 14:18 PDT (History)
5 users (show)

See Also:


Attachments
test case (650 bytes, text/html)
2010-06-16 18:27 PDT, Ojan Vafai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2010-06-16 18:27:36 PDT
Created attachment 58950 [details]
test case

In general, we treat clicking in the margins of an element as not clicking in that element for the purposes of text selection. So clicking in the margin to the left puts the selection at the beginning of that element and clicking in the margin to the right puts the selection at the end of that element.

In general, I think that's correct, but the body element is an exception since it's the top-level visible element. It's easier to see this in the attached test case that what we currently do is clearly not what any user would expect.
Comment 1 Ryosuke Niwa 2011-08-15 14:18:17 PDT
The current behavior is consistent with Firefox 5, but Internet Explorer treat margins as if they are paddings.