summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/expected
diff options
context:
space:
mode:
authorAndi Gallo <andigallo@proton.me>2023-05-30 01:28:28 +0000
committerAndreas Kling <kling@serenityos.org>2023-05-30 10:09:47 +0200
commit7f9ede07bcf287a2b16ff29c1ebbcf64c47a221f (patch)
tree7867e2a965ab153172e529af58b22a1bcb667687 /Tests/LibWeb/Layout/expected
parente48074e40168804ddf41e93ffe70f34b11ff0270 (diff)
downloadserenity-7f9ede07bcf287a2b16ff29c1ebbcf64c47a221f.zip
LibWeb: Set margin, padding and border for replaced boxes
Separating the paths for replaced and non-replaced floating boxes lost the logic for margin, padding and border which was done by compute_width_for_floating_box. Set them the same way as we do for block-level replaced elements, per the specification.
Diffstat (limited to 'Tests/LibWeb/Layout/expected')
-rw-r--r--Tests/LibWeb/Layout/expected/set-margin-of-floating-box.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/set-margin-of-floating-box.txt b/Tests/LibWeb/Layout/expected/set-margin-of-floating-box.txt
new file mode 100644
index 0000000000..0226def991
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/set-margin-of-floating-box.txt
@@ -0,0 +1,16 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline
+ BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
+ TextNode <#text>
+ BlockContainer <body> at (8,16) content-size 784x17.46875 children: not-inline
+ BlockContainer <(anonymous)> at (8,16) content-size 784x0 children: inline
+ TextNode <#text>
+ ImageBox <img> at (8,16) content-size 200x100 floating children: not-inline
+ TextNode <#text>
+ BlockContainer <p> at (8,16) content-size 784x17.46875 children: inline
+ line 0 width: 37.21875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 4, rect: [228,16 37.21875x17.46875]
+ "Test"
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,49.46875) content-size 784x0 children: inline
+ TextNode <#text>