diff --git a/Libraries/LibWeb/Painting/ImagePaintable.cpp b/Libraries/LibWeb/Painting/ImagePaintable.cpp index 034f9e7c7b9..0ec5ef2c755 100644 --- a/Libraries/LibWeb/Painting/ImagePaintable.cpp +++ b/Libraries/LibWeb/Painting/ImagePaintable.cpp @@ -152,7 +152,9 @@ void ImagePaintable::paint(PaintContext& context, PaintPhase phase) const context.rounded_device_pixels(scaled_bitmap_height).value() }; + apply_own_clip_rect(context, phase); context.display_list_recorder().draw_scaled_immutable_bitmap(draw_rect, image_int_rect_device_pixels, *bitmap, scaling_mode); + clear_own_clip_rect(context, phase); } } } diff --git a/Tests/LibWeb/Ref/input/css/css-masking/clip-image.html b/Tests/LibWeb/Ref/input/css/css-masking/clip-image.html new file mode 100644 index 00000000000..16b7b55da62 --- /dev/null +++ b/Tests/LibWeb/Ref/input/css/css-masking/clip-image.html @@ -0,0 +1,14 @@ + + + +