summaryrefslogtreecommitdiff
path: root/tests/typ/style
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-01-29 22:32:30 +0100
committerLaurenz <laurmaedje@gmail.com>2022-01-29 22:32:57 +0100
commitaeb036f4dc2ede271d6c0710e91fae605ecdac84 (patch)
tree1941fc92ba7240c1026a5f52e3a49496350f0255 /tests/typ/style
parent44ebefbec23114d6ed7a96e7e3cb9078441aff31 (diff)
Fix that templates don't create a scope
Diffstat (limited to 'tests/typ/style')
-rw-r--r--tests/typ/style/wrap.typ6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/typ/style/wrap.typ b/tests/typ/style/wrap.typ
index 5e0fdd0d..1ff3cc95 100644
--- a/tests/typ/style/wrap.typ
+++ b/tests/typ/style/wrap.typ
@@ -19,5 +19,11 @@ in booklovers and the great fulfiller of human need.
A [_B #wrap c in [*#c*]; C] D
---
+// Test wrap style precedence.
+#set text(fill: eastern, size: 150%)
+#wrap body in text(fill: forest, body)
+Forest
+
+---
// Error: 6-17 wrap is only allowed directly in markup
{1 + wrap x in y}