summaryrefslogtreecommitdiff
path: root/tests/suite/visualize/rect.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/visualize/rect.typ')
-rw-r--r--tests/suite/visualize/rect.typ16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/suite/visualize/rect.typ b/tests/suite/visualize/rect.typ
index a659287e..ba5792b7 100644
--- a/tests/suite/visualize/rect.typ
+++ b/tests/suite/visualize/rect.typ
@@ -54,6 +54,22 @@
#v(3pt)
#rect(width: 20pt, height: 20pt, stroke: (thickness: 5pt, join: "round"))
+--- rect-stroke-caps ---
+// Separated segments
+#rect(width: 20pt, height: 20pt, stroke: (
+ left: (cap: "round", thickness: 5pt),
+ right: (cap: "square", thickness: 7pt),
+))
+// Joined segment with different caps.
+#rect(width: 20pt, height: 20pt, stroke: (
+ left: (cap: "round", thickness: 5pt),
+ top: (cap: "square", thickness: 7pt),
+))
+// No caps when there is a radius for that corner.
+#rect(width: 20pt, height: 20pt, radius: (top: 3pt), stroke: (
+ left: (cap: "round", thickness: 5pt),
+ top: (cap: "square", thickness: 7pt),
+))
--- red-stroke-bad-type ---
// Error: 15-21 expected length, color, gradient, tiling, dictionary, stroke, none, or auto, found array
#rect(stroke: (1, 2))