diff --git a/Tests/LibWeb/Ref/border-radius-with-padding.html b/Tests/LibWeb/Ref/border-radius-with-padding.html
new file mode 100644
index 0000000000..3e1d64d428
--- /dev/null
+++ b/Tests/LibWeb/Ref/border-radius-with-padding.html
@@ -0,0 +1,10 @@
+
+
diff --git a/Tests/LibWeb/Ref/reference/border-radius-with-padding-ref.html b/Tests/LibWeb/Ref/reference/border-radius-with-padding-ref.html
new file mode 100644
index 0000000000..a2fce8201c
--- /dev/null
+++ b/Tests/LibWeb/Ref/reference/border-radius-with-padding-ref.html
@@ -0,0 +1,8 @@
+
diff --git a/Userland/Libraries/LibWeb/Layout/LayoutState.cpp b/Userland/Libraries/LibWeb/Layout/LayoutState.cpp
index e6d22e12ac..3d0d03ddb7 100644
--- a/Userland/Libraries/LibWeb/Layout/LayoutState.cpp
+++ b/Userland/Libraries/LibWeb/Layout/LayoutState.cpp
@@ -285,8 +285,7 @@ void LayoutState::resolve_border_radii()
if (paintable && is
(*paintable)) {
auto& paintable_box = static_cast(*paintable);
- CSSPixelRect const content_rect { 0, 0, used_values.content_width(), used_values.content_height() };
- auto border_rect = content_rect.inflated(used_values.border_top, used_values.border_right, used_values.border_bottom, used_values.border_left);
+ CSSPixelRect const border_rect { 0, 0, used_values.border_box_width(), used_values.border_box_height() };
auto const& border_top_left_radius = node.computed_values().border_top_left_radius();
auto const& border_top_right_radius = node.computed_values().border_top_right_radius();