summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-27 14:05:29 +0100
committerGitHub <noreply@github.com>2024-02-27 13:05:29 +0000
commitba531c371e61e34607bb1e3aa911e2529dac7b35 (patch)
treebb7bbb3951f4b90835445a0ba625b148445ffd8f /tests
parentae31640c0a62d26b7f2a7a38579293ae48c7c7b7 (diff)
Fix float overlap (#3507)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/2595-float-overlap.pngbin0 -> 15654 bytes
-rw-r--r--tests/ref/bugs/2715-float-order.pngbin12944 -> 13006 bytes
-rw-r--r--tests/typ/bugs/2595-float-overlap.typ13
-rw-r--r--tests/typ/bugs/2715-float-order.typ2
4 files changed, 14 insertions, 1 deletions
diff --git a/tests/ref/bugs/2595-float-overlap.png b/tests/ref/bugs/2595-float-overlap.png
new file mode 100644
index 00000000..6d8eaf94
--- /dev/null
+++ b/tests/ref/bugs/2595-float-overlap.png
Binary files differ
diff --git a/tests/ref/bugs/2715-float-order.png b/tests/ref/bugs/2715-float-order.png
index 76e6db9e..0a4f8812 100644
--- a/tests/ref/bugs/2715-float-order.png
+++ b/tests/ref/bugs/2715-float-order.png
Binary files differ
diff --git a/tests/typ/bugs/2595-float-overlap.typ b/tests/typ/bugs/2595-float-overlap.typ
new file mode 100644
index 00000000..7c7f68c9
--- /dev/null
+++ b/tests/typ/bugs/2595-float-overlap.typ
@@ -0,0 +1,13 @@
+#set page(height: 80pt)
+
+Start.
+
+#place(auto, float: true, [
+ #block(height: 100%, width: 100%, fill: aqua)
+])
+
+#place(auto, float: true, [
+ #block(height: 100%, width: 100%, fill: red)
+])
+
+#lorem(20)
diff --git a/tests/typ/bugs/2715-float-order.typ b/tests/typ/bugs/2715-float-order.typ
index f6ac6219..af0684a1 100644
--- a/tests/typ/bugs/2715-float-order.typ
+++ b/tests/typ/bugs/2715-float-order.typ
@@ -1,4 +1,4 @@
-#set page(height: 170pt)
+#set page(height: 180pt)
#set figure(placement: auto)
#figure(