summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/input
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-03-26 13:03:27 +0200
committerAndreas Kling <kling@serenityos.org>2023-03-26 15:14:35 +0200
commit5b030a692342d5ff6a5741634c83e0db1fb9935e (patch)
treea8c5d3bd5a2faa3538c1440b031ce55db63cdb81 /Tests/LibWeb/Layout/input
parent2699f226fb530c11e533d74f5aadacaac20d0c69 (diff)
downloadserenity-5b030a692342d5ff6a5741634c83e0db1fb9935e.zip
Tests/LibWeb: Add test for flex item auto height with `flex-wrap: wrap`
Diffstat (limited to 'Tests/LibWeb/Layout/input')
-rw-r--r--Tests/LibWeb/Layout/input/flex-item-auto-height-with-wrap.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/LibWeb/Layout/input/flex-item-auto-height-with-wrap.html b/Tests/LibWeb/Layout/input/flex-item-auto-height-with-wrap.html
new file mode 100644
index 0000000000..3fcbdec589
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/flex-item-auto-height-with-wrap.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html><html><head><style>
+ html {
+ background: white;
+ font: 16px 'SerenitySans';
+ }
+ .outer {
+ width: 400px;
+ height: 100px;
+ display: flex;
+ flex-direction: column;
+ background: pink;
+ }
+ .inner {
+ display: flex;
+ flex-wrap: wrap;
+ background: orange;
+ }
+</style></head><body class="outer"><div class="inner">The orange box should have a snug height</div></div></div>