diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index 4087a79a0d..462e8149bc 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -406,6 +406,10 @@ BorderRadiiData PaintableBox::normalized_border_radii_data(ShrinkRadiiForBorders Optional PaintableBox::calculate_overflow_clipped_rect() const { + if (layout_node().is_viewport()) { + return {}; + } + if (!m_clip_rect.has_value()) { // NOTE: stacking context should not be crossed while aggregating rectangle to // clip `overflow: hidden` because intersecting rectangles with different