summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-29 13:12:50 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-29 13:12:50 +0100
commitcae60ea0cc818b570435c92d081f734109c9c52e (patch)
treefa1711ce7a156f645b70c45d8eba37294e8a449c /tests
parente36b8ed374423816876273f30b77eee38cb8b74c (diff)
Go back to wrapping inline nodes
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/elements/circle.pngbin18807 -> 18782 bytes
-rw-r--r--tests/ref/elements/rect.pngbin2913 -> 2914 bytes
-rw-r--r--tests/ref/layout/grid-1.pngbin3255 -> 3250 bytes
-rw-r--r--tests/ref/layout/grid-3.pngbin37219 -> 37234 bytes
-rw-r--r--tests/typ/elements/ellipse.typ4
-rw-r--r--tests/typ/elements/image.typ8
-rw-r--r--tests/typ/layout/align.typ2
-rw-r--r--tests/typ/layout/pad.typ2
-rw-r--r--tests/typ/layout/placed.typ4
9 files changed, 10 insertions, 10 deletions
diff --git a/tests/ref/elements/circle.png b/tests/ref/elements/circle.png
index 4ef3ad5e..e5a38e28 100644
--- a/tests/ref/elements/circle.png
+++ b/tests/ref/elements/circle.png
Binary files differ
diff --git a/tests/ref/elements/rect.png b/tests/ref/elements/rect.png
index a434b81d..b6ab89aa 100644
--- a/tests/ref/elements/rect.png
+++ b/tests/ref/elements/rect.png
Binary files differ
diff --git a/tests/ref/layout/grid-1.png b/tests/ref/layout/grid-1.png
index df8ab644..1996e25a 100644
--- a/tests/ref/layout/grid-1.png
+++ b/tests/ref/layout/grid-1.png
Binary files differ
diff --git a/tests/ref/layout/grid-3.png b/tests/ref/layout/grid-3.png
index 6023170c..505ed0ed 100644
--- a/tests/ref/layout/grid-3.png
+++ b/tests/ref/layout/grid-3.png
Binary files differ
diff --git a/tests/typ/elements/ellipse.typ b/tests/typ/elements/ellipse.typ
index 47f6d0e1..39c73a6f 100644
--- a/tests/typ/elements/ellipse.typ
+++ b/tests/typ/elements/ellipse.typ
@@ -7,8 +7,8 @@
---
Rect in ellipse in fixed rect. \
#rect(width: 3cm, height: 2cm, fill: rgb("2a631a"),
- ellipse(fill: forest,
- rect(fill: conifer,
+ ellipse(fill: forest, width: 100%, height: 100%,
+ rect(fill: conifer, width: 100%, height: 100%,
align(center + horizon)[
Stuff inside an ellipse!
]
diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ
index 9d192b40..0fce4295 100644
--- a/tests/typ/elements/image.typ
+++ b/tests/typ/elements/image.typ
@@ -27,12 +27,12 @@
// Test all three fit modes.
#page(height: 50pt, margins: 0pt)
#grid(
- columns: 3,
+ columns: (1fr, 1fr, 1fr),
rows: 100%,
gutter: 3pt,
- image("../../res/tiger.jpg", fit: "contain"),
- image("../../res/tiger.jpg", fit: "cover"),
- image("../../res/tiger.jpg", fit: "stretch"),
+ image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "contain"),
+ image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "cover"),
+ image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "stretch"),
)
---
diff --git a/tests/typ/layout/align.typ b/tests/typ/layout/align.typ
index 4a50d3dc..13b88ac1 100644
--- a/tests/typ/layout/align.typ
+++ b/tests/typ/layout/align.typ
@@ -10,7 +10,7 @@
#align(center + horizon, rect(fill: eastern, height: 10pt))
#align(bottom, stack(
align(center, rect(fill: conifer, height: 10pt)),
- rect(fill: forest, height: 10pt),
+ rect(fill: forest, height: 10pt, width: 100%),
))
---
diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ
index 2a91d1ca..1fa0f79d 100644
--- a/tests/typ/layout/pad.typ
+++ b/tests/typ/layout/pad.typ
@@ -11,7 +11,7 @@
)
)
-Hi #pad(left: 10pt)[A] there
+Hi #box(pad(left: 10pt)[A]) there
---
// Pad can grow.
diff --git a/tests/typ/layout/placed.typ b/tests/typ/layout/placed.typ
index da56ae2d..334ff80d 100644
--- a/tests/typ/layout/placed.typ
+++ b/tests/typ/layout/placed.typ
@@ -9,10 +9,10 @@ Unfortunately, \
the line breaks still had to be inserted manually.
#stack(
- rect(fill: eastern, height: 10pt),
+ rect(fill: eastern, height: 10pt, width: 100%),
place(right, dy: 1.5pt)[ABC],
rect(fill: conifer, height: 10pt, width: 80%),
- rect(fill: forest, height: 10pt),
+ rect(fill: forest, height: 10pt, width: 100%),
)
#block[