summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-05-17 12:59:31 +0200
committerGitHub <noreply@github.com>2024-05-17 10:59:31 +0000
commitad598f559e4284fabe45aff63b0eb7c5e5499b7d (patch)
tree3c10427fd0d4352c559664578044c62bfe7fb12d /tests/suite
parent6a1a58a2d49d0e56c907018593aeaa97e7f58470 (diff)
Fix show rules on queried elements (#4166)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/introspection/query.typ16
1 files changed, 16 insertions, 0 deletions
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()