From 4c090a9a3575c1eac2581ab45e29de628019ed21 Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Tue, 28 Mar 2023 18:45:36 +0100 Subject: [PATCH] Tests/LibWeb: Add layout test for layout fix in PR #15780 Adds a layout test for the fix in 488a979. --- ...g-of-position-relative-floating-parent.txt | 6 +++++ ...-of-position-relative-floating-parent.html | 27 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 Tests/LibWeb/Layout/expected/position-absolute-ignores-padding-of-position-relative-floating-parent.txt create mode 100644 Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html diff --git a/Tests/LibWeb/Layout/expected/position-absolute-ignores-padding-of-position-relative-floating-parent.txt b/Tests/LibWeb/Layout/expected/position-absolute-ignores-padding-of-position-relative-floating-parent.txt new file mode 100644 index 00000000000..60130fffa9f --- /dev/null +++ b/Tests/LibWeb/Layout/expected/position-absolute-ignores-padding-of-position-relative-floating-parent.txt @@ -0,0 +1,6 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x216 children: not-inline + BlockContainer at (8,8) content-size 784x200 children: not-inline + BlockContainer at (8,8) content-size 200x200 children: not-inline + BlockContainer at (18,18) content-size 0x0 positioned floating children: not-inline + BlockContainer at (8,8) content-size 100x100 positioned children: not-inline diff --git a/Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html b/Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html new file mode 100644 index 00000000000..697317840fc --- /dev/null +++ b/Tests/LibWeb/Layout/input/position-absolute-ignores-padding-of-position-relative-floating-parent.html @@ -0,0 +1,27 @@ + +
\ No newline at end of file