summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/multiline-shrink-to-fit.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-flexbox/multiline-shrink-to-fit.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-flexbox/multiline-shrink-to-fit.html')
-rw-r--r--testing/web-platform/tests/css/css-flexbox/multiline-shrink-to-fit.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/multiline-shrink-to-fit.html b/testing/web-platform/tests/css/css-flexbox/multiline-shrink-to-fit.html
new file mode 100644
index 0000000000..e2a65a501f
--- /dev/null
+++ b/testing/web-platform/tests/css/css-flexbox/multiline-shrink-to-fit.html
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html>
+<title>CSS Flexbox: multiline column flexboxes and shrink-to-fit.</title>
+<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#intrinsic-sizes">
+<link rel="match" href="reference/multiline-shrink-to-fit-ref.html">
+<meta name="assert" content="This test ensures that multiline column flexboxes shrink-to-fit works properly."/>
+<style>
+.flexbox {
+ display: flex;
+ background-color: #aaa;
+ position: relative;
+ flex-wrap: wrap;
+ flex-direction: column;
+ float: left;
+ align-content: flex-start;
+}
+.flexbox > * {
+ flex: none;
+}
+.flexbox :nth-child(1) {
+ background-color: lightblue;
+}
+.flexbox :nth-child(2) {
+ background-color: lightgreen;
+}
+.flexbox :nth-child(3) {
+ background-color: pink;
+}
+.flexbox :nth-child(4) {
+ background-color: yellow;
+}
+</style>
+<body>
+
+<div class="flexbox">
+ <div style="width: 100px; height: 20px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 20px"></div>
+</div>
+<p style="clear:left">The grey background should be 100px wide.</p>
+
+<div class="flexbox" style="height: 30px">
+ <div style="width: 100px; height: 20px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 20px"></div>
+</div>
+<p style="clear:left">The grey background should be 100px wide.</p>
+
+<div style="width: 150px">
+<div class="flexbox">
+ <div style="width: 100px; height: 20px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 20px"></div>
+</div>
+</div>
+<p style="clear:left">The grey background should be 100px wide.</p>
+
+<div style="width: 150px">
+<div class="flexbox" style="height: 35px">
+ <div style="width: 100px; height: 20px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 10px"></div>
+ <div style="width: 100px; height: 20px"></div>
+</div>
+</div>
+<p style="clear:left">The grey background should be 100px wide and 5px should
+stick out the bottom.</p>
+
+</body>
+</html>