diff options
| author | Anton Wetzel <59712243+antonWetzel@users.noreply.github.com> | 2023-11-08 15:30:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-08 15:30:00 +0100 |
| commit | ba05164bb67071bfaab858daf2fb2b3387cc17c5 (patch) | |
| tree | 34ab64f84aa106d7340b6397ff9c1014a36c06b2 /tests/typ | |
| parent | 46846a337e8084acd46c70bccc2fca2659e9fb9a (diff) | |
Change rectangle clip to use the inside of the stroke, not the middle. (#2626)
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/layout/clip.typ | 12 |
1 files changed, 12 insertions, 0 deletions
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) +) |
