Bug 193564 - [LFC][BFC][MarginCollapsing] Collapsing through should not ignore floats.
Summary: [LFC][BFC][MarginCollapsing] Collapsing through should not ignore floats.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-17 22:14 PST by zalan
Modified: 2019-01-18 11:11 PST (History)
5 users (show)

See Also:


Attachments
Patch (5.63 KB, patch)
2019-01-17 22:17 PST, zalan
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2019-01-17 22:14:34 PST
ssia
Comment 1 zalan 2019-01-17 22:17:25 PST
Created attachment 359451 [details]
Patch
Comment 2 Antti Koivisto 2019-01-18 06:28:31 PST
Comment on attachment 359451 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=359451&action=review

> LayoutTests/fast/block/float/float-in-descendant-formatting-context-expected.txt:9
> +layer at (0,0) size 800x600
> +  RenderView at (0,0) size 800x600
> +layer at (0,0) size 800x26
> +  RenderBlock {HTML} at (0,0) size 800x26
> +    RenderBody {BODY} at (8,8) size 784x10
> +layer at (8,8) size 784x10
> +  RenderBlock {DIV} at (0,0) size 784x10
> +    RenderInline {SPAN} at (0,0) size 0x0
> +    RenderBlock (floating) {DIV} at (0,0) size 10x10

Could we do ref tests instead? Render tree dumps are bit weird for testing something that ultimately won't have render tree.
Comment 3 zalan 2019-01-18 06:42:52 PST
Committed r240146: <https://trac.webkit.org/changeset/240146>
Comment 4 Radar WebKit Bug Importer 2019-01-18 06:43:27 PST
<rdar://problem/47383635>
Comment 5 zalan 2019-01-18 11:11:46 PST
(In reply to Antti Koivisto from comment #2)
> Comment on attachment 359451 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=359451&action=review
> 
> > LayoutTests/fast/block/float/float-in-descendant-formatting-context-expected.txt:9
> > +layer at (0,0) size 800x600
> > +  RenderView at (0,0) size 800x600
> > +layer at (0,0) size 800x26
> > +  RenderBlock {HTML} at (0,0) size 800x26
> > +    RenderBody {BODY} at (8,8) size 784x10
> > +layer at (8,8) size 784x10
> > +  RenderBlock {DIV} at (0,0) size 784x10
> > +    RenderInline {SPAN} at (0,0) size 0x0
> > +    RenderBlock (floating) {DIV} at (0,0) size 10x10
> 
> Could we do ref tests instead? Render tree dumps are bit weird for testing
> something that ultimately won't have render tree.
In certain cases when testing against geometry it is actually more reliable to dump the box geometry and match against that (especially at this phase of the project and with this type of content). However I agree that the dumps in this format are not optimal/future-proof. That we should definitely change.