diff options
author | Oriol Brufau <obrufau@igalia.com> | 2023-06-21 11:04:29 +0200 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-06-21 18:00:05 +0200 |
commit | 0dd6abe0230c69df72b1e31b4793ffa548fc9300 (patch) | |
tree | d361a894a13e300b64718b7ef5ed006be0f78dd4 /components/script/dom/servoparser/async_html.rs | |
parent | fa7107ac12a13ec4c7baffbd3fc13996f8cd9ac3 (diff) | |
download | servo-0dd6abe0230c69df72b1e31b4793ffa548fc9300.tar.gz servo-0dd6abe0230c69df72b1e31b4793ffa548fc9300.zip |
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.
Diffstat (limited to 'components/script/dom/servoparser/async_html.rs')
0 files changed, 0 insertions, 0 deletions