Bug 188264

Summary: [LFC][Floating] Containing block of a float could push the candidate position beyond the current float.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch koivisto: review+

Description zalan 2018-08-02 11:11:08 PDT
<div style="float: left; width: 210px; height: 10px;"></div>
<div style="float: left; width: 10px; height: 10px;"></div>
<div style="position: relative; top: 0px; left: 0px; width: 100px; height: 40px;">
    <div id=nested style="float: left; width: 90px; height: 10px;"></div>
</div>
In this case the "nested" float's containing block pushes the candidate rect to (0, 0) while the current (last) float is already at 220px
Comment 1 zalan 2018-08-02 11:24:48 PDT
Created attachment 346396 [details]
Patch
Comment 2 zalan 2018-08-02 12:40:42 PDT
Committed r234508: <https://trac.webkit.org/changeset/234508>
Comment 3 Radar WebKit Bug Importer 2018-08-02 12:41:32 PDT
<rdar://problem/42868709>