summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorEric Biedert <github@ericbiedert.de>2023-09-26 11:42:05 +0200
committerGitHub <noreply@github.com>2023-09-26 11:42:05 +0200
commitc8ebcd70d6b2b9b3ad5142411305d766cc2d0c2e (patch)
treef3167f3d685606f3eea5bfe3ebb2ba8f986abc2f /tests/typ
parentc55901e972f6671ecfe05358a96f85f34c703cc0 (diff)
Resolve spacing before comparing (#2235)
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 \