LibWeb: Adjust flex item intrinsic contributions through aspect ratio

When determining the intrinsic cross size contribution of a flex item
with a preferred aspect ratio, we have to account for any min/max
constraints in the main axis.
This commit is contained in:
Andreas Kling 2024-08-21 12:41:45 +02:00 committed by Andreas Kling
commit bde2d3dc7b
Notes: github-actions[bot] 2024-08-21 11:39:27 +00:00
4 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,9 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x0 [BFC] children: not-inline
Box <body> at (8,8) content-size 50x50 positioned flex-container(row) [FFC] children: not-inline
ImageBox <img> at (8,8) content-size 50x50 flex-item children: not-inline
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x0] overflow: [8,8 50x50]
PaintableBox (Box<BODY>) [8,8 50x50]
ImagePaintable (ImageBox<IMG>) [8,8 50x50]