mirror of
https://github.com/servo/servo.git
synced 2025-06-18 13:24:29 +00:00
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`. |
||
---|---|---|
.. | ||
construct.rs | ||
float.rs | ||
inline.rs | ||
mod.rs | ||
root.rs |