aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/test.py
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-06-08 09:11:48 +0200
committerOriol Brufau <obrufau@igalia.com>2023-06-08 11:05:57 +0200
commit5e1f059de245eaa7399bd6d5207b79c3834ecdf3 (patch)
tree9e947b2b9c0d974bdf2859f78eaf0b3fc3ab77ca /python/tidy/test.py
parent1bd1441d0bd3f861dac044a617d152add1667471 (diff)
downloadservo-5e1f059de245eaa7399bd6d5207b79c3834ecdf3.tar.gz
servo-5e1f059de245eaa7399bd6d5207b79c3834ecdf3.zip
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`.
Diffstat (limited to 'python/tidy/test.py')
0 files changed, 0 insertions, 0 deletions