From 0060fe30951706956702b8ee1e0dbd6c9f14b55c Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sat, 26 Aug 2023 18:11:00 +0200 Subject: [PATCH] LibWeb: Account for float intrusions in list marker x offset --- .../list-markers-intruded-by-float.txt | 65 +++++++++++++++++++ .../list-markers-intruded-by-float.html | 13 ++++ .../LibWeb/Layout/BlockFormattingContext.cpp | 4 +- 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 Tests/LibWeb/Layout/expected/block-and-inline/list-markers-intruded-by-float.txt create mode 100644 Tests/LibWeb/Layout/input/block-and-inline/list-markers-intruded-by-float.html diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/list-markers-intruded-by-float.txt b/Tests/LibWeb/Layout/expected/block-and-inline/list-markers-intruded-by-float.txt new file mode 100644 index 00000000000..de0d136e860 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/block-and-inline/list-markers-intruded-by-float.txt @@ -0,0 +1,65 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x128.8125 [BFC] children: not-inline + BlockContainer at (8,16) content-size 784x104.8125 children: not-inline + BlockContainer at (18,26) content-size 200x100 floating [BFC] children: not-inline + BlockContainer