in-flow block boxes' horizontal margin extends to the containing block's content box. In some cases (float avoiding) we need the non-extended, original values.
Created attachment 348473 [details] Patch
Created attachment 348482 [details] Patch
Comment on attachment 348482 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=348482&action=review > Source/WebCore/layout/blockformatting/BlockFormattingContextGeometry.cpp:241 > + return WidthAndMargin { *width, { *marginLeft, *marginRight }, { nonComputedMarginLeft, nonComputedMarginRight } }; return { *width, { *marginLeft, *marginRight }, { nonComputedMarginLeft, nonComputedMarginRight } } ; should work too?
Comment on attachment 348482 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=348482&action=review > Source/WebCore/layout/FormattingContextGeometry.cpp:420 > + return { *left, *right, { *width, { *marginLeft, *marginRight }, {nonComputedMarginLeft, nonComputedMarginRight } } }; Missing space before nonComputedMarginLeft
Committed r235501: <https://trac.webkit.org/changeset/235501>
<rdar://problem/43884877>