diff options
author | Andreas Kling <kling@serenityos.org> | 2023-04-01 15:19:21 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-02 06:45:44 +0200 |
commit | 9cded6e1b531cfdaed1b3458b571d5dee9b1599f (patch) | |
tree | 2f8f6e008bce528120c27baaad82a1d035b26834 /Tests/LibWeb/Layout/expected | |
parent | 2413de7e10efda16f6f376b42b204279d7a25906 (diff) | |
download | serenity-9cded6e1b531cfdaed1b3458b571d5dee9b1599f.zip |
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. :^)
Diffstat (limited to 'Tests/LibWeb/Layout/expected')
-rw-r--r-- | Tests/LibWeb/Layout/expected/flex-item-with-intrinsic-aspect-ratio.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/flex-item-with-intrinsic-aspect-ratio.txt b/Tests/LibWeb/Layout/expected/flex-item-with-intrinsic-aspect-ratio.txt new file mode 100644 index 0000000000..ffac888f15 --- /dev/null +++ b/Tests/LibWeb/Layout/expected/flex-item-with-intrinsic-aspect-ratio.txt @@ -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 |