summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/bugs/2821-missing-fields.typ9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/typ/bugs/2821-missing-fields.typ b/tests/typ/bugs/2821-missing-fields.typ
new file mode 100644
index 00000000..0fec2043
--- /dev/null
+++ b/tests/typ/bugs/2821-missing-fields.typ
@@ -0,0 +1,9 @@
+// Issue #2821: Setting a figure's supplement to none removes the field
+// Ref: false
+
+---
+#show figure.caption: it => {
+ assert(it.has("supplement"))
+ assert(it.supplement == none)
+}
+#figure([], caption: [], supplement: none)