Bug 101771

Summary: Selection goes crazy with floats that have margins
Product: WebKit Reporter: Ojan Vafai <ojan>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hyatt, jfernandez, mitz, rniwa, zalan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://neutrino.io/
See Also: https://bugs.chromium.org/p/chromium/issues/detail?id=758526
https://bugzilla.mozilla.org/show_bug.cgi?id=1397514
Bug Depends on: 176096    
Bug Blocks:    
Attachments:
Description Flags
reduced testcase
none
another test case none

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.