From c8ebcd70d6b2b9b3ad5142411305d766cc2d0c2e Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Tue, 26 Sep 2023 11:42:05 +0200 Subject: Resolve spacing before comparing (#2235) --- tests/ref/compiler/array.png | Bin 8385 -> 8306 bytes tests/ref/compiler/repr.png | Bin 51799 -> 44479 bytes tests/ref/compiler/show-selector.png | Bin 17066 -> 16871 bytes tests/ref/layout/spacing.png | Bin 3348 -> 4158 bytes tests/ref/meta/outline-entry.png | Bin 78782 -> 62248 bytes tests/ref/text/raw-align.png | Bin 32879 -> 32817 bytes tests/ref/text/raw.png | Bin 21607 -> 21650 bytes tests/typ/layout/spacing.typ | 10 ++++++++++ 8 files changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/ref/compiler/array.png b/tests/ref/compiler/array.png index a96dfe64..9b6bf8b3 100644 Binary files a/tests/ref/compiler/array.png and b/tests/ref/compiler/array.png differ diff --git a/tests/ref/compiler/repr.png b/tests/ref/compiler/repr.png index 82ece777..aa519dd0 100644 Binary files a/tests/ref/compiler/repr.png and b/tests/ref/compiler/repr.png differ diff --git a/tests/ref/compiler/show-selector.png b/tests/ref/compiler/show-selector.png index f8259698..52e99c9a 100644 Binary files a/tests/ref/compiler/show-selector.png and b/tests/ref/compiler/show-selector.png differ diff --git a/tests/ref/layout/spacing.png b/tests/ref/layout/spacing.png index c733fb02..9bab536a 100644 Binary files a/tests/ref/layout/spacing.png and b/tests/ref/layout/spacing.png differ diff --git a/tests/ref/meta/outline-entry.png b/tests/ref/meta/outline-entry.png index 3a277397..f8f5412f 100644 Binary files a/tests/ref/meta/outline-entry.png and b/tests/ref/meta/outline-entry.png differ diff --git a/tests/ref/text/raw-align.png b/tests/ref/text/raw-align.png index 734008e1..6d1044f7 100644 Binary files a/tests/ref/text/raw-align.png and b/tests/ref/text/raw-align.png differ diff --git a/tests/ref/text/raw.png b/tests/ref/text/raw.png index 09912afc..27120d74 100644 Binary files a/tests/ref/text/raw.png and b/tests/ref/text/raw.png differ 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 @@ -24,6 +24,16 @@ A #h(0pt) B #h(0pt) \ 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) -- cgit v1.2.3