RESOLVED FIXED193346
[LFC][BFC][MarginCollapsing] Adjust vertical position when box margin collapses through.
https://bugs.webkit.org/show_bug.cgi?id=193346
Summary [LFC][BFC][MarginCollapsing] Adjust vertical position when box margin collaps...
alan
Reported 2019-01-10 21:41:37 PST
https://www.w3.org/TR/CSS22/box.html#collapsing-margins If the top and bottom margins of a box are adjoining, then it is possible for margins to collapse through it. In this case, the position of the element depends on its relationship with the other elements whose margins are being collapsed. If the element's margins are collapsed with its parent's top margin, the top border edge of the box is defined to be the same as the parent's. Otherwise, either the element's parent is not taking part in the margin collapsing, or only the parent's bottom margin is involved. The position of the element's top border edge is the same as it would have been if the element had a non-zero bottom border.
Attachments
Patch (18.09 KB, patch)
2019-01-10 21:53 PST, alan
no flags
Patch (18.41 KB, patch)
2019-01-11 07:45 PST, alan
koivisto: review+
alan
Comment 1 2019-01-10 21:53:52 PST
alan
Comment 2 2019-01-11 07:45:29 PST
alan
Comment 3 2019-01-11 08:19:48 PST
Radar WebKit Bug Importer
Comment 4 2019-01-11 08:20:30 PST
Note You need to log in before you can comment on or make changes to this bug.