diff options
author | tanishka <109246904+taniishkaaa@users.noreply.github.com> | 2024-11-29 00:50:39 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-28 19:20:39 +0000 |
commit | 16da1c2721d471277c3981795d8d6000e8876cea (patch) | |
tree | c0e36417804eb72659ac2a5d3f59ede8d8a8a03f /components | |
parent | 6daae7666e5ef0dbae0b8504f06c9b2f5be75745 (diff) | |
download | servo-16da1c2721d471277c3981795d8d6000e8876cea.tar.gz servo-16da1c2721d471277c3981795d8d6000e8876cea.zip |
Ensure taffy uses margin when calling used_size_as_if_inline_element_from_content_box_sizes() (#34421)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components')
-rw-r--r-- | components/layout_2020/taffy/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_2020/taffy/layout.rs b/components/layout_2020/taffy/layout.rs index 0dae5299cbe..de15b0b943d 100644 --- a/components/layout_2020/taffy/layout.rs +++ b/components/layout_2020/taffy/layout.rs @@ -168,7 +168,7 @@ impl taffy::LayoutPartialTree for TaffyContainerContext<'_> { inline: Size::Initial, block: Size::Initial, }, - pbm.padding_border_sums, + pbm.padding_border_sums + pbm.margin.auto_is(Au::zero).sum(), ) .to_physical_size(self.style.writing_mode); |