aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/async_html.rs
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-06-21 19:05:32 +0200
committerGitHub <noreply@github.com>2023-06-21 19:05:32 +0200
commit9edc2c664fc4b5e04d8805107369ca0f20081771 (patch)
tree30d3cba897e10df33e378916128369e41acb41e8 /components/script/dom/servoparser/async_html.rs
parent7590b47dbd7e8afd7caed98bf88002a7e3ffe67e (diff)
parent0dd6abe0230c69df72b1e31b4793ffa548fc9300 (diff)
downloadservo-9edc2c664fc4b5e04d8805107369ca0f20081771.tar.gz
servo-9edc2c664fc4b5e04d8805107369ca0f20081771.zip
Auto merge of #29902 - Loirooriol:clearance-prevents-margin-collapse2, r=mrobinson
Fix interaction of clearance with margin collapse In #29897 I did the simple naive thing, but it wasn't entirely correct. This patch tries to address the problems. In particular: - Clearance should prevent margins from collapsing through if it happens between them, as opposed to on the element that owns them. - The margins of an element with clearance can still collapse through, and collapse with other siblings as normal, but the resulting margin can't collapse with the bottom margin of the parent. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #29896 - [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 'components/script/dom/servoparser/async_html.rs')
0 files changed, 0 insertions, 0 deletions