summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/flow-4.pngbin0 -> 8613 bytes
-rw-r--r--tests/ref/compiler/show-selector.pngbin20686 -> 20691 bytes
-rw-r--r--tests/ref/layout/block-sizing.pngbin0 -> 22856 bytes
-rw-r--r--tests/ref/meta/link.pngbin49325 -> 49353 bytes
-rw-r--r--tests/typ/bugs/flow-4.typ5
-rw-r--r--tests/typ/layout/block-sizing.typ16
-rw-r--r--tests/typ/layout/container-fill.typ2
7 files changed, 22 insertions, 1 deletions
diff --git a/tests/ref/bugs/flow-4.png b/tests/ref/bugs/flow-4.png
new file mode 100644
index 00000000..59caa2fd
--- /dev/null
+++ b/tests/ref/bugs/flow-4.png
Binary files differ
diff --git a/tests/ref/compiler/show-selector.png b/tests/ref/compiler/show-selector.png
index bbd303d1..9239602c 100644
--- a/tests/ref/compiler/show-selector.png
+++ b/tests/ref/compiler/show-selector.png
Binary files differ
diff --git a/tests/ref/layout/block-sizing.png b/tests/ref/layout/block-sizing.png
new file mode 100644
index 00000000..d0a488ea
--- /dev/null
+++ b/tests/ref/layout/block-sizing.png
Binary files differ
diff --git a/tests/ref/meta/link.png b/tests/ref/meta/link.png
index 5d175516..267490ad 100644
--- a/tests/ref/meta/link.png
+++ b/tests/ref/meta/link.png
Binary files differ
diff --git a/tests/typ/bugs/flow-4.typ b/tests/typ/bugs/flow-4.typ
new file mode 100644
index 00000000..f49873f5
--- /dev/null
+++ b/tests/typ/bugs/flow-4.typ
@@ -0,0 +1,5 @@
+// In this bug, a frame intended for the second region ended up in the first.
+
+---
+#set page(height: 105pt)
+#block(lorem(20))
diff --git a/tests/typ/layout/block-sizing.typ b/tests/typ/layout/block-sizing.typ
new file mode 100644
index 00000000..a768c3e3
--- /dev/null
+++ b/tests/typ/layout/block-sizing.typ
@@ -0,0 +1,16 @@
+// Test blocks with fixed height.
+
+---
+#set page(height: 100pt)
+#set align(center)
+
+#lorem(10)
+#block(width: 80%, height: 60pt, fill: aqua)
+#lorem(6)
+#block(
+ breakable: false,
+ width: 100%,
+ inset: 4pt,
+ fill: aqua,
+ lorem(8) + colbreak(),
+)
diff --git a/tests/typ/layout/container-fill.typ b/tests/typ/layout/container-fill.typ
index ab5913ab..34849d88 100644
--- a/tests/typ/layout/container-fill.typ
+++ b/tests/typ/layout/container-fill.typ
@@ -1,6 +1,6 @@
#set page(height: 100pt)
#let words = lorem(18).split()
-#block(inset: 8pt, fill: aqua, stroke: aqua.darken(30%))[
+#block(inset: 8pt, width: 100%, fill: aqua, stroke: aqua.darken(30%))[
#words.slice(0, 12).join(" ")
#box(fill: teal, outset: 2pt)[incididunt]
#words.slice(12).join(" ")