From 6078b9ca896007357b699f13aee7843f0c862b4a Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 19 May 2024 15:36:18 +0200 Subject: layout: fix BFC positioning in presence of floats Previously, the following printed "2" instead of "12":
1
2
This fixes the above problem in the laziest possible way: we relayout once in the smallest possible space the BFC fits in when floats exist. See the comment in the code for details. As a nice bonus, this also fixes tables overlapping with floated boxes, by pretending that they establish a BFC. --- test/layout/float-minimum-height.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/layout/float-minimum-height.html (limited to 'test/layout/float-minimum-height.html') diff --git a/test/layout/float-minimum-height.html b/test/layout/float-minimum-height.html new file mode 100644 index 00000000..b466890c --- /dev/null +++ b/test/layout/float-minimum-height.html @@ -0,0 +1,15 @@ +
+
+
+
+
+
+
+line 1
+line 2
+line 3
+line 4
+line 5
+
+
+testing testing testing testing testing -- cgit 1.4.1-2-gfad0