summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Biedert <github@ericbiedert.de>2024-10-28 15:31:00 +0100
committerGitHub <noreply@github.com>2024-10-28 14:31:00 +0000
commit45377f25ecbd33b56ec5fcd1335f20b13488a93d (patch)
tree994bd469ffbadbafdba62f44143c1fbbcfb2b812 /tests
parent6dd05cc17ab0a1d6ddbc11854d1a662d91da142f (diff)
Fix clipping with outset (#5295)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/box-clip-outset.pngbin0 -> 1442 bytes
-rw-r--r--tests/suite/layout/container.typ13
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ref/box-clip-outset.png b/tests/ref/box-clip-outset.png
new file mode 100644
index 00000000..21538e85
--- /dev/null
+++ b/tests/ref/box-clip-outset.png
Binary files differ
diff --git a/tests/suite/layout/container.typ b/tests/suite/layout/container.typ
index e1367967..799300f0 100644
--- a/tests/suite/layout/container.typ
+++ b/tests/suite/layout/container.typ
@@ -251,6 +251,19 @@ First!
image("/assets/images/rhino.png", width: 30pt)
)
+--- box-clip-outset ---
+// Test clipping with `outset`.
+#set page(height: 60pt)
+
+#box(
+ outset: 5pt,
+ stroke: 2pt + black,
+ width: 20pt,
+ height: 20pt,
+ clip: true,
+ image("/assets/images/rhino.png", width: 30pt)
+)
+
--- container-layoutable-child ---
// Test box/block sizing with directly layoutable child.
//