servo/components/layout_2020/flow
Oriol Brufau 5e1f059de2 Improve margin collapse in layout-2020
According to https://drafts.csswg.org/css2/#collapsing-margins, bottom
margins should only collapse with the last child if `height` is `auto`.
Also, the note mentions `min-height: 0`, but the normative text doesn't
have such requirement, so I'm dropping it, matching WebKit.

The previous logic is moved into the case of collapsing the top and
bottom margins of the same element, since this can happen either with
`height: auto` or `height: 0`, and requires `min-height: 0`.
2023-06-08 11:05:57 +02:00
..
construct.rs layout_2020: Check blocks for whether they will establish a formatting context 2023-05-31 23:28:28 +08:00
float.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
inline.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
mod.rs Improve margin collapse in layout-2020 2023-06-08 11:05:57 +02:00
root.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00