[LayoutNG] Implement -webkit-margin-collapse
-webkit-margin-collapse is a shorthand for -webkit-margin-before-collapse and -webkit-margin-after-collapse (and there's also -webkit-margin-top-collapse and -webkit-margin-bottom-collapse that will only work in horizontal writing modes). These are all about controlling whether we should collapse block-direction margins (default), separate them, or discard them completely. If we separate margins, we'll separate (otherwise) adjoining margins before the margin from the margin in question, AND separate the margin in question from (otherwise) adjoining margins after it. If we discard a margin, we'll discard all (otherwise) adjoining margins, both before and after the margin in question. There's no spec. This is based on the behavior in legacy Blink / WebKit. Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I91c869013d11a0ce9327908ce724d518a19209e8 Reviewed-on: https://chromium-review.googlesource.com/1111117 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/master@{#569892}
Showing
Please register or sign in to comment