1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibWeb: Fix application of intrinsic aspect ratio to flex column items

The intrinsic aspect ratio of a box is a width:height ratio, so if we
have the width and need the height, we should divide, not multiply. :^)
This commit is contained in:
Andreas Kling 2023-04-01 15:19:21 +02:00
parent 2413de7e10
commit 9cded6e1b5
3 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,4 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x200 children: not-inline
Box <body> at (0,0) content-size 400x200 flex-container(column) children: not-inline
ImageBox <img> at (0,0) content-size 400x200 flex-item children: not-inline