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

Although the spec doesn't mention it, if a flex item has box-sizing: border-box, and the specified size suggestion is a definite size, we have to subtract the borders and padding from the size before using it. This fixes an issue seen in "This Week in Ladybird #4" where the screenshots ended up in one long vertical stack instead of paired up 2 by 2.
5 lines
406 B
Text
5 lines
406 B
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x100 children: not-inline
|
|
Box <body> at (0,0) content-size 800x100 flex-container(row) children: not-inline
|
|
ImageBox <img> at (0,0) content-size 400x100 flex-item children: not-inline
|
|
ImageBox <img.padded> at (600,0) content-size 200x100 flex-item children: not-inline
|