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/bfc-next-to-float.expected | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/layout/bfc-next-to-float.expected (limited to 'test/layout/bfc-next-to-float.expected') diff --git a/test/layout/bfc-next-to-float.expected b/test/layout/bfc-next-to-float.expected new file mode 100644 index 00000000..8efff318 --- /dev/null +++ b/test/layout/bfc-next-to-float.expected @@ -0,0 +1,5 @@ +firstsecond + second second second second second second second second second second + second second second second second +third +fourthfifth -- cgit 1.4.1-2-gfad0