diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-05-17 12:59:31 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 15:34:20 +0200 |
| commit | 836157a9244ab78d80a0163acac94890c47ac4cd (patch) | |
| tree | 920efcff753033b16fe889c8df6de93a4bb030c1 /tests | |
| parent | 2ecd0b126f16941d2afbf0ea68681b3f1b94d3ac (diff) | |
Fix show rules on queried elements (#4166)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-3726-query-show-set.png | bin | 0 -> 2295 bytes | |||
| -rw-r--r-- | tests/suite/introspection/query.typ | 16 |
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 Binary files differnew file mode 100644 index 00000000..3f5c8884 --- /dev/null +++ b/tests/ref/issue-3726-query-show-set.png 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() |
