summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-07 16:13:24 +0200
committerGitHub <noreply@github.com>2024-10-07 14:13:24 +0000
commit1d2a222818991bcc3ade54fdd30480ce1fb8826f (patch)
treea189d2685f978c1da17189276a221278aeac1c17 /tests
parentdb9debca6d7468692bea3943a4f78a5f35c1b23d (diff)
Error for parent-scoped figures without placement (#5151)
Diffstat (limited to 'tests')
-rw-r--r--tests/suite/model/figure.typ5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/suite/model/figure.typ b/tests/suite/model/figure.typ
index feaf8d3b..fbd0ab29 100644
--- a/tests/suite/model/figure.typ
+++ b/tests/suite/model/figure.typ
@@ -77,6 +77,11 @@ We can clearly see that @fig-cylinder and
#lines(15)
+--- figure-scope-without-placement ---
+// Error: 2-27 parent-scoped placement is only available for floating figures
+// Hint: 2-27 you can enable floating placement with `figure(placement: auto, ..)`
+#figure(scope: "parent")[]
+
--- figure-theorem ---
// Testing show rules with figures with a simple theorem display
#show figure.where(kind: "theorem"): it => {