diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-02 14:48:12 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-02 14:48:12 +0100 |
| commit | bfa9962632dd3c2e9110f9c3667d7e3cf6b133d4 (patch) | |
| tree | c48de05a4ae1e5c97eb4f6ddc9ede32ee65cf3ef /tests | |
| parent | f3bdc9d3daca2c26c4cc745be48a5ce1c8a10641 (diff) | |
Remove baseline weirdness
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/elements/circle.png | bin | 18782 -> 18873 bytes | |||
| -rw-r--r-- | tests/ref/elements/image.png | bin | 185125 -> 211019 bytes | |||
| -rw-r--r-- | tests/ref/elements/square.png | bin | 6565 -> 6585 bytes | |||
| -rw-r--r-- | tests/ref/layout/aspect.png | bin | 3618 -> 3601 bytes | |||
| -rw-r--r-- | tests/ref/layout/containers.png | bin | 5201 -> 5194 bytes | |||
| -rw-r--r-- | tests/ref/text/baseline.png | bin | 0 -> 886 bytes | |||
| -rw-r--r-- | tests/typ/elements/image.typ | 4 | ||||
| -rw-r--r-- | tests/typ/layout/aspect.typ | 12 | ||||
| -rw-r--r-- | tests/typ/text/baseline.typ | 4 |
9 files changed, 12 insertions, 8 deletions
diff --git a/tests/ref/elements/circle.png b/tests/ref/elements/circle.png Binary files differindex e5a38e28..931debd0 100644 --- a/tests/ref/elements/circle.png +++ b/tests/ref/elements/circle.png diff --git a/tests/ref/elements/image.png b/tests/ref/elements/image.png Binary files differindex 2385d820..92c68e29 100644 --- a/tests/ref/elements/image.png +++ b/tests/ref/elements/image.png diff --git a/tests/ref/elements/square.png b/tests/ref/elements/square.png Binary files differindex 9663015f..86bc1ff5 100644 --- a/tests/ref/elements/square.png +++ b/tests/ref/elements/square.png diff --git a/tests/ref/layout/aspect.png b/tests/ref/layout/aspect.png Binary files differindex 62f17ba4..f76b4980 100644 --- a/tests/ref/layout/aspect.png +++ b/tests/ref/layout/aspect.png diff --git a/tests/ref/layout/containers.png b/tests/ref/layout/containers.png Binary files differindex f8977f1d..f6981fe5 100644 --- a/tests/ref/layout/containers.png +++ b/tests/ref/layout/containers.png diff --git a/tests/ref/text/baseline.png b/tests/ref/text/baseline.png Binary files differnew file mode 100644 index 00000000..6890236f --- /dev/null +++ b/tests/ref/text/baseline.png diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ index 0fce4295..5fd121e3 100644 --- a/tests/typ/elements/image.typ +++ b/tests/typ/elements/image.typ @@ -43,6 +43,10 @@ Stuff #image("../../res/rhino.png") --- +// Test baseline. +A #image("../../res/tiger.jpg", height: 1cm, width: 80%) B + +--- // Error: 8-29 file not found #image("path/does/not/exist") diff --git a/tests/typ/layout/aspect.typ b/tests/typ/layout/aspect.typ index c0db17e0..c9b8ee41 100644 --- a/tests/typ/layout/aspect.typ +++ b/tests/typ/layout/aspect.typ @@ -11,14 +11,10 @@ --- // Test alignment in automatically sized square and circle. #font(8pt) -#grid( - columns: 2, - gutter: 10pt, - square(padding: 4pt)[ - Hey there, #align(center + bottom, rotate(180deg, [you!])) - ], - circle(align(center + horizon, [Hey.])), -) +#square(padding: 4pt)[ + Hey there, #align(center + bottom, rotate(180deg, [you!])) +] +#circle(align(center + horizon, [Hey.])) --- // Test that maximum wins if both width and height are given. diff --git a/tests/typ/text/baseline.typ b/tests/typ/text/baseline.typ new file mode 100644 index 00000000..f22fce08 --- /dev/null +++ b/tests/typ/text/baseline.typ @@ -0,0 +1,4 @@ +// Test text baseline. + +--- +Hi #font(150%)[You], #font(75%)[how are you?] |
