summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-3726-query-show-set.pngbin0 -> 2295 bytes
-rw-r--r--tests/suite/introspection/query.typ16
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/issue-3726-query-show-set.png b/tests/ref/issue-3726-query-show-set.png
new file mode 100644
index 00000000..3f5c8884
--- /dev/null
+++ b/tests/ref/issue-3726-query-show-set.png
Binary files differ
diff --git a/tests/suite/introspection/query.typ b/tests/suite/introspection/query.typ
index 3a4b4fbf..6cdd4bab 100644
--- a/tests/suite/introspection/query.typ
+++ b/tests/suite/introspection/query.typ
@@ -265,3 +265,19 @@
)),
([Frog], [GiraffeCat], [Iguana])
)
+
+--- issue-3726-query-show-set ---
+// Test that show rules apply to queried elements, i.e. that the content
+// returned from `query` isn't yet marked as prepared.
+#set heading(numbering: "1.")
+#show heading: underline
+= Hi
+
+#set heading(numbering: "I.")
+#show heading: set text(blue)
+#show heading: highlight.with(fill: aqua.lighten(50%))
+= Bye
+
+// New show rules apply to this, but its location and the materialized fields
+// from the original are retained.
+#context query(heading).join()