summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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.
//