Bug 101771 - Selection goes crazy with floats that have margins
Summary: Selection goes crazy with floats that have margins
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://neutrino.io/
Depends on: 176096
  Show dependency treegraph
Reported: 2012-11-09 09:15 PST by Ojan Vafai
Modified: 2017-09-06 16:08 PDT (History)
5 users (show)

See Also:

reduced testcase (953 bytes, text/html)
2012-11-09 09:15 PST, Ojan Vafai
no flags Details
another test case (273 bytes, text/html)
2017-08-24 03:45 PDT, Javier Fernandez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ojan Vafai 2012-11-09 09:15:24 PST
Created attachment 173321 [details]
reduced testcase

See test case. In general we don't handle margins very well with selections (e.g. any page that puts all it's contents in a margin: auto container). Here's another case encountered in the real world.
Comment 1 Javier Fernandez 2017-08-24 03:45:18 PDT
I don't think margins have a direct effect on the issue. I think that the root cause is extending the selection until reaching the float's container. 

I'll attach another case which I think reveals the same issue without margins.
Comment 2 Javier Fernandez 2017-08-24 03:45:56 PDT
Created attachment 318979 [details]
another test case
Comment 3 Javier Fernandez 2017-08-24 03:56:56 PDT
FTR, the issue is clearly reproducible in current trunk.
Comment 4 Javier Fernandez 2017-08-24 04:00:50 PDT
I can reproduce the issue described in both test cases in FF as well.