From db545b51ef439f463ca530ff56f86d63d4c14c72 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 15 Mar 2023 10:22:37 +0100 Subject: [PATCH] LibWeb: Make sure `float: left` boxes get pushed down if they can't fit --- .../bfc-float-left-break-vertically-2.txt | 10 +++++ .../bfc-float-left-break-vertically.txt | 18 ++++++++ .../bfc-float-left-break-vertically-2.html | 32 ++++++++++++++ .../bfc-float-left-break-vertically.html | 44 +++++++++++++++++++ .../LibWeb/Layout/BlockFormattingContext.cpp | 15 +++---- 5 files changed, 110 insertions(+), 9 deletions(-) create mode 100644 Tests/LibWeb/Layout/expected/bfc-float-left-break-vertically-2.txt create mode 100644 Tests/LibWeb/Layout/expected/bfc-float-left-break-vertically.txt create mode 100644 Tests/LibWeb/Layout/input/bfc-float-left-break-vertically-2.html create mode 100644 Tests/LibWeb/Layout/input/bfc-float-left-break-vertically.html diff --git a/Tests/LibWeb/Layout/expected/bfc-float-left-break-vertically-2.txt b/Tests/LibWeb/Layout/expected/bfc-float-left-break-vertically-2.txt new file mode 100644 index 00000000000..ce53aa59f8c --- /dev/null +++ b/Tests/LibWeb/Layout/expected/bfc-float-left-break-vertically-2.txt @@ -0,0 +1,10 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x150 children: not-inline + BlockContainer at (0,0) content-size 200x0 children: not-inline + BlockContainer