diff --git a/Libraries/LibWeb/Painting/StackingContext.cpp b/Libraries/LibWeb/Painting/StackingContext.cpp index bab8fa1791a..c538be587df 100644 --- a/Libraries/LibWeb/Painting/StackingContext.cpp +++ b/Libraries/LibWeb/Painting/StackingContext.cpp @@ -103,11 +103,11 @@ void StackingContext::paint_svg(PaintContext& context, PaintableBox const& paint if (phase != PaintPhase::Foreground) return; - paintable.apply_clip_overflow_rect(context, PaintPhase::Foreground); + paintable.before_paint(context, PaintPhase::Foreground); paint_node(paintable, context, PaintPhase::Background); paint_node(paintable, context, PaintPhase::Border); SVGSVGPaintable::paint_svg_box(context, paintable, phase); - paintable.clear_clip_overflow_rect(context, PaintPhase::Foreground); + paintable.after_paint(context, PaintPhase::Foreground); } void StackingContext::paint_descendants(PaintContext& context, Paintable const& paintable, StackingContextPaintPhase phase) diff --git a/Tests/LibWeb/Ref/expected/scrolled-svg-path-with-transform.html b/Tests/LibWeb/Ref/expected/scrolled-svg-path-with-transform.html new file mode 100644 index 00000000000..436649e35d7 --- /dev/null +++ b/Tests/LibWeb/Ref/expected/scrolled-svg-path-with-transform.html @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/Tests/LibWeb/Ref/input/scrolled-svg-path-with-transform.html b/Tests/LibWeb/Ref/input/scrolled-svg-path-with-transform.html new file mode 100644 index 00000000000..f92f383ad59 --- /dev/null +++ b/Tests/LibWeb/Ref/input/scrolled-svg-path-with-transform.html @@ -0,0 +1,15 @@ + + + + \ No newline at end of file