From ba05164bb67071bfaab858daf2fb2b3387cc17c5 Mon Sep 17 00:00:00 2001 From: Anton Wetzel <59712243+antonWetzel@users.noreply.github.com> Date: Wed, 8 Nov 2023 15:30:00 +0100 Subject: Change rectangle clip to use the inside of the stroke, not the middle. (#2626) --- tests/ref/layout/clip.png | Bin 29586 -> 33092 bytes tests/typ/layout/clip.typ | 12 ++++++++++++ 2 files changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/ref/layout/clip.png b/tests/ref/layout/clip.png index c847fc63..f37bf9ad 100644 Binary files a/tests/ref/layout/clip.png and b/tests/ref/layout/clip.png differ diff --git a/tests/typ/layout/clip.typ b/tests/typ/layout/clip.typ index d05fdb74..d20609d8 100644 --- a/tests/typ/layout/clip.typ +++ b/tests/typ/layout/clip.typ @@ -54,3 +54,15 @@ First! clip: true, image("/files/rhino.png", width: 30pt) ) +--- +// Test clipping with `radius`, but without `stroke`. + +#set page(height: 60pt) + +#box( + radius: 5pt, + width: 20pt, + height: 20pt, + clip: true, + image("/files/rhino.png", width: 30pt) +) -- cgit v1.2.3