summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/layout/spacing.typ10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ
index fbc5b0d8..f4e59590 100644
--- a/tests/typ/layout/spacing.typ
+++ b/tests/typ/layout/spacing.typ
@@ -25,6 +25,16 @@ A B \
A #h(-1fr) B
---
+// Test spacing collapsing with different font sizes.
+#grid(columns: 2)[
+ #text(size: 12pt, block(below: 1em)[A])
+ #text(size: 8pt, block(above: 1em)[B])
+][
+ #text(size: 12pt, block(below: 1em)[A])
+ #text(size: 8pt, block(above: 1.25em)[B])
+]
+
+---
// Test RTL spacing.
#set text(dir: rtl)
A #h(10pt) B \