diff options
author | bors-servo <infra@servo.org> | 2023-06-09 00:20:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 00:20:05 +0200 |
commit | cb0c0bf3ce2816526c8009cd70a2f09e64042a72 (patch) | |
tree | ca7b95e21c34e2f41d81d2e21f110720677c4531 /python/tidy/test.py | |
parent | 0a70b276259a749de45c9fb655a281e98a2ffeab (diff) | |
parent | 5e1f059de245eaa7399bd6d5207b79c3834ecdf3 (diff) | |
download | servo-cb0c0bf3ce2816526c8009cd70a2f09e64042a72.tar.gz servo-cb0c0bf3ce2816526c8009cd70a2f09e64042a72.zip |
Auto merge of #29856 - Loirooriol:improve-margin-collapse, r=mrobinson
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`.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #29858
- [X] There are tests for these changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'python/tidy/test.py')
0 files changed, 0 insertions, 0 deletions