summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authormatcool <26722564+matcool@users.noreply.github.com>2023-04-03 18:26:13 -0300
committerAndreas Kling <kling@serenityos.org>2023-04-05 16:23:56 +0200
commitcc33a57620574658425f240c715f2107c6d02433 (patch)
tree476b4e8e20a21e5e46aafc7b676e2d3013f3e1aa /Tests
parent9b4b12f133850dcc3b3c27c240dabbe1faefd17f (diff)
downloadserenity-cc33a57620574658425f240c715f2107c6d02433.zip
LibWeb: Use intrinsic aspect ratio when calculating max content height
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibWeb/Layout/expected/flex-item-on-row-with-intrinsic-aspect-ratio.txt4
-rw-r--r--Tests/LibWeb/Layout/input/flex-item-on-row-with-intrinsic-aspect-ratio.html12
2 files changed, 16 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/expected/flex-item-on-row-with-intrinsic-aspect-ratio.txt b/Tests/LibWeb/Layout/expected/flex-item-on-row-with-intrinsic-aspect-ratio.txt
new file mode 100644
index 0000000000..6da0287415
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/flex-item-on-row-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 800x200 flex-container(row) children: not-inline
+ ImageBox <img> at (0,0) content-size 400x200 flex-item children: not-inline
diff --git a/Tests/LibWeb/Layout/input/flex-item-on-row-with-intrinsic-aspect-ratio.html b/Tests/LibWeb/Layout/input/flex-item-on-row-with-intrinsic-aspect-ratio.html
new file mode 100644
index 0000000000..ed59d6391e
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/flex-item-on-row-with-intrinsic-aspect-ratio.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html><html><head><style>
+ * {
+ margin: 0;
+ padding: 0;
+ }
+ body {
+ display: flex;
+ }
+ img {
+ width: 400px;
+ }
+</style></head><body><img src="data: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YAGCBTBQ7GENj5nSqN2/yhatul0ea7Z8eC17eiJmLF5NxuGfMeO2Xv+5j1fms5jPxLzj23SGBSBYAIIFCBaAYAEIFiBYAINkZNLfYFjMlw/rFqxq9rDy62BNV//0zzFXY6aNqeVirHf5jNk+1tmYk9m74QwLQLAABAsQLADBAhAsQLAABoo9rKFzPWa6XWGXC16dqnn8vZixcLVePrzn4sY+VNq/WizGuTh0/0GcYQGCBSBYAIIFCBaAYAGCBbAt2MMaWvO9vfydmB9WP/325j5E7F21voh5tBgrvh6cYQGCBSBYAIIFCBaAYAG0rDWw4f9TYqar07wWc60Y6bIy+eVlRsvz8zgci/lkzY+BMyxAsAAEC0CwAMECECwAwQK2E3tYgDMsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAAwfInAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAECxAsAMECECxAsAAEC0CwAMECECxAsAAEC0CwAMECECwAwQIEC0CwAAQLECwAwQIQLECwAAQLQLAAwQIQLADBAgQLQLAABAsQLADBAhAsQLAABAtAsADBAhAsQLAABAtAsADBAhAsAMECBAtAsAAEC2i8fwDFkO6lWFprKQAAAABJRU5ErkJggg=="> \ No newline at end of file