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 @@
<!doctype html><style type="text/css">
* { outline: 1px solid black; }
body {
display: flex;
position: absolute;
left: 0px;
}
img { max-width: 50px; }
</style><body><img src="../120.png">