summaryrefslogtreecommitdiff
path: root/tests/suite/model/figure.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/model/figure.typ')
-rw-r--r--tests/suite/model/figure.typ22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/suite/model/figure.typ b/tests/suite/model/figure.typ
index fbd0ab29..19e81116 100644
--- a/tests/suite/model/figure.typ
+++ b/tests/suite/model/figure.typ
@@ -267,3 +267,25 @@ HI#footnote.entry(clearance: 2.5em)[There]
// Test that figure caption separator is synthesized correctly.
#show figure.caption: c => test(c.separator, [#": "])
#figure(table[], caption: [This is a test caption])
+
+--- issue-4966-figure-float-counter ---
+#let c = context counter(figure.where(kind: image)).display()
+#set align(center)
+
+#c
+
+#figure(
+ square(c),
+ placement: bottom,
+ caption: [A]
+)
+
+#c
+
+#figure(
+ circle(c),
+ placement: top,
+ caption: [B]
+)
+
+#c