mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 07:57:49 +00:00

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
9 lines
683 B
Text
9 lines
683 B
Text
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 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
|
|
frag 0 from TextNode start: 0, length: 4, rect: [12,12 45.15625x17.46875]
|
|
"OPEN"
|
|
TextNode <#text>
|