summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/expected/block-and-inline
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-05-08 14:48:03 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-08 15:56:00 +0200
commit1ebae7a779a4dfabaeb836b6b44f1b3c5ed896c1 (patch)
tree1cf828655571139c04d1eb4df054b4981ba7f39d /Tests/LibWeb/Layout/expected/block-and-inline
parent771208d2e284cd8ae99f05a46a7c984a5dc417c6 (diff)
downloadserenity-1ebae7a779a4dfabaeb836b6b44f1b3c5ed896c1.zip
LibWeb: Stop changing width of block-level flex containers during layout
If the parent BFC can come up with a nice stretch-fit width for the flex container, it will have already done so *before* even entering flex layout. There's no need to do it again, midway through the flex layout algorithm. This wasn't just unnecessary, but we were also doing it incorrectly and not taking margins into account when calculating the amount of available space for stretch-fit. This led to oversized flex containers in the presence of negative margins. Fixes #18614
Diffstat (limited to 'Tests/LibWeb/Layout/expected/block-and-inline')
-rw-r--r--Tests/LibWeb/Layout/expected/block-and-inline/max-width-on-child-block-with-width-auto-contributes-to-intrinsic-size-of-parent.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/max-width-on-child-block-with-width-auto-contributes-to-intrinsic-size-of-parent.txt b/Tests/LibWeb/Layout/expected/block-and-inline/max-width-on-child-block-with-width-auto-contributes-to-intrinsic-size-of-parent.txt
index 6912a85853..a4e3082716 100644
--- a/Tests/LibWeb/Layout/expected/block-and-inline/max-width-on-child-block-with-width-auto-contributes-to-intrinsic-size-of-parent.txt
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/max-width-on-child-block-with-width-auto-contributes-to-intrinsic-size-of-parent.txt
@@ -1,6 +1,6 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (1,1) content-size 798x39.46875 [BFC] children: not-inline
- Box <body.outer> at (10,10) content-size 764x21.46875 flex-container(row) [FFC] children: not-inline
+ Box <body.outer> at (10,10) content-size 780x21.46875 flex-container(row) [FFC] children: not-inline
BlockContainer <div.middle> at (11,11) content-size 202x19.46875 flex-item [BFC] children: not-inline
BlockContainer <div.inner> at (12,12) content-size 200x17.46875 children: inline
line 0 width: 45.15625, height: 17.46875, bottom: 17.46875, baseline: 13.53125