summaryrefslogtreecommitdiff
path: root/tests/typ/layout/container.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-28 15:50:48 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-28 23:54:34 +0100
commit3ca5b238238e1128aa7bbfbd5db9e632045d8600 (patch)
tree2471f4b340a15695b7f4d518c0b39fabaea676c4 /tests/typ/layout/container.typ
parentb63c21c91d99a1554a019dc275f955d3e6a34271 (diff)
Reorganize library
Diffstat (limited to 'tests/typ/layout/container.typ')
-rw-r--r--tests/typ/layout/container.typ22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/typ/layout/container.typ b/tests/typ/layout/container.typ
new file mode 100644
index 00000000..c6928074
--- /dev/null
+++ b/tests/typ/layout/container.typ
@@ -0,0 +1,22 @@
+// Test the `box` and `block` containers.
+
+---
+// Test box in paragraph.
+A #box[B \ C] D.
+
+// Test box with height.
+Spaced \
+#box(height: 0.5cm) \
+Apart
+
+---
+// Test block over multiple pages.
+
+#set page(height: 60pt)
+
+First!
+
+#block[
+ But, soft! what light through yonder window breaks? It is the east, and Juliet
+ is the sun.
+]