RESOLVED FIXED 192214
[LFC][BFC][MarginCollapsing] Do not use computed display box values for border and padding
https://bugs.webkit.org/show_bug.cgi?id=192214
Summary [LFC][BFC][MarginCollapsing] Do not use computed display box values for borde...
zalan
Reported 2018-11-29 21:11:32 PST
they are not computed yet when we are trying to estimate margin top values. try to survive with the non-computed values. <body><div style="float: left"></div><div><div style="margin-top: 10px">foobar</div></div> when the floating box is placed, we need to know its final vertical position. We estimate margin tops all the way to the formatting context root. To computer margin-top for the <body>, we actually have to know if that nested div's margin gets collapsed all the way up. To find it out we need to know padding and border values. Unfortunately at the time when the float is placed we don't yet have that information.
Attachments
Patch (11.94 KB, patch)
2018-11-29 21:27 PST, zalan
koivisto: review+
zalan
Comment 1 2018-11-29 21:27:43 PST
zalan
Comment 2 2018-11-30 07:22:46 PST
Radar WebKit Bug Importer
Comment 3 2018-11-30 07:23:37 PST
Note You need to log in before you can comment on or make changes to this bug.