mirror of
https://github.com/servo/servo.git
synced 2025-10-01 17:19:16 +01:00
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`.
This commit is contained in:
parent
1bd1441d0b
commit
5e1f059de2
3 changed files with 6 additions and 9 deletions
|
@ -1,2 +0,0 @@
|
|||
[margin-collapse-025.xht]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[margin-collapse-037.xht]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue