diff --git a/components/layout_2020/display_list/mod.rs b/components/layout_2020/display_list/mod.rs index e042517ea42..0936e463df8 100644 --- a/components/layout_2020/display_list/mod.rs +++ b/components/layout_2020/display_list/mod.rs @@ -379,7 +379,7 @@ impl<'a> BuilderForBoxFragment<'a> { .to_physical(self.fragment.style.writing_mode) .to_webrender(), ), - self.border_rect, + *self.padding_rect(), builder, ) }) @@ -394,7 +394,7 @@ impl<'a> BuilderForBoxFragment<'a> { .to_physical(self.fragment.style.writing_mode) .to_webrender(), ), - self.border_rect, + *self.content_rect(), builder, ) }) @@ -667,7 +667,7 @@ fn image_rendering(ir: style::computed_values::image_rendering::T) -> wr::ImageR /// Radii for the padding edge or content edge fn inner_radii(mut radii: wr::BorderRadius, offsets: units::LayoutSideOffsets) -> wr::BorderRadius { - radii.top_left.width -= -offsets.left; + radii.top_left.width -= offsets.left; radii.bottom_left.width -= offsets.left; radii.top_right.width -= offsets.right; diff --git a/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-clip-padding-box-with-border-radius.html.ini b/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-clip-padding-box-with-border-radius.html.ini deleted file mode 100644 index a0a99cae381..00000000000 --- a/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-clip-padding-box-with-border-radius.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[background-clip-padding-box-with-border-radius.html] - expected: FAIL diff --git a/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-rounded-image-clip.html.ini b/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-rounded-image-clip.html.ini deleted file mode 100644 index 5652f8af961..00000000000 --- a/tests/wpt/metadata-layout-2020/css/css-backgrounds/background-rounded-image-clip.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[background-rounded-image-clip.html] - expected: FAIL