summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/align-content-wrap-001.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-flexbox/align-content-wrap-001.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-flexbox/align-content-wrap-001.html')
-rw-r--r--testing/web-platform/tests/css/css-flexbox/align-content-wrap-001.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/align-content-wrap-001.html b/testing/web-platform/tests/css/css-flexbox/align-content-wrap-001.html
new file mode 100644
index 0000000000..1e0ce42c75
--- /dev/null
+++ b/testing/web-platform/tests/css/css-flexbox/align-content-wrap-001.html
@@ -0,0 +1,77 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css-flexbox/#propdef-align-content" />
+<title>css-flexbox: Tests align-content with single-line flex-wrap: wrap</title>
+<style>
+.default {
+ display: flex;
+ flex-wrap: wrap;
+ position: relative;
+ height: 70px;
+ border: 1px solid red;
+ margin: 5px;
+}
+
+.default > div {
+ height: 20px;
+}
+
+.verticalWriting {
+ display: flex;
+ flex-wrap: wrap;
+ position: relative;
+ width: 70px;
+ border: 1px solid red;
+ margin: 5px;
+ writing-mode: vertical-lr;
+}
+
+.verticalWriting > div {
+ width: 20px;
+}
+</style>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/check-layout-th.js"></script>
+</head>
+<body onload="checkLayout('.default, .verticalWriting'); ">
+<div id=log></div>
+<p>Test that we honor align-content even in single-line flex containers</p>
+<div class="default" style="align-content: flex-start">
+<div data-offset-y="0">This text should be at the top of its container</div>
+</div>
+<div class="default" style="align-content: flex-end">
+<div data-offset-y="50">This text should be at the bottom of its container</div>
+</div>
+<div class="default" style="align-content: center">
+<div data-offset-y="25">This text should be centered in its container</div>
+</div>
+<div class="default" style="align-content: space-between">
+<div data-offset-y="0">This text should be at the top of its container</div>
+</div>
+<div class="default" style="align-content: space-around">
+<div data-offset-y="25">This text should be centered in its container</div>
+</div>
+<div class="default" style="align-content: space-evenly">
+<div data-offset-y="25">This text should be centered in its container</div>
+</div>
+<div class="default" style="align-content: stretch">
+<div data-offset-y="0">This text should be at the top of its container</div>
+</div>
+<div class="verticalWriting" style="align-content: flex-start">
+<div data-offset-x="0">This text should be at the left of its container</div>
+</div>
+<div class="verticalWriting" style="align-content: flex-end">
+<div data-offset-x="50">This text should be at the right of its container</div>
+</div>
+<div class="verticalWriting" style="align-content: center">
+<div data-offset-x="25">This text should be centered in its container</div>
+</div>
+<div class="verticalWriting" style="align-content: space-between">
+<div data-offset-x="0">This text should be at the left of its container</div>
+</div>
+<div class="verticalWriting" style="align-content: space-around">
+<div data-offset-x="25">This text should be centered in its container</div>
+</div>
+<div class="verticalWriting" style="align-content: stretch">
+<div data-offset-x="0">This text should be at the left of its container</div>
+</div>