From e3e0041c7fbd8608163d3725e4a0270940a5e88d Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Wed, 18 Sep 2024 15:06:44 +0200 Subject: [PATCH] Tests/LibWeb: Add layout test for float box with box-sizing=border-box Adds a test for d6a31d80c05db05c34cd56ca865658a5b82dbb69 that was mistakenly ommited in the first place. --- .../floating-box-with-box-sizing-border-box.txt | 9 +++++++++ .../floating-box-with-box-sizing-border-box.html | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/block-and-inline/floating-box-with-box-sizing-border-box.txt create mode 100644 Tests/LibWeb/Layout/input/block-and-inline/floating-box-with-box-sizing-border-box.html diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/floating-box-with-box-sizing-border-box.txt b/Tests/LibWeb/Layout/expected/block-and-inline/floating-box-with-box-sizing-border-box.txt new file mode 100644 index 00000000000..ad7a470f783 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/block-and-inline/floating-box-with-box-sizing-border-box.txt @@ -0,0 +1,9 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x208 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x0 children: not-inline + BlockContainer at (108,108) content-size 100x0 floating [BFC] children: not-inline + +ViewportPaintable (Viewport<#document>) [0,0 800x600] + PaintableWithLines (BlockContainer) [0,0 800x208] + PaintableWithLines (BlockContainer) [8,8 784x0] overflow: [8,8 300x200] + PaintableWithLines (BlockContainer
.box) [8,8 300x200] diff --git a/Tests/LibWeb/Layout/input/block-and-inline/floating-box-with-box-sizing-border-box.html b/Tests/LibWeb/Layout/input/block-and-inline/floating-box-with-box-sizing-border-box.html new file mode 100644 index 00000000000..05a98ae1728 --- /dev/null +++ b/Tests/LibWeb/Layout/input/block-and-inline/floating-box-with-box-sizing-border-box.html @@ -0,0 +1,10 @@ +
\ No newline at end of file