aboutsummaryrefslogtreecommitdiffstats
path: root/test/render/flex/--flexbox-single-line-clamp-3.htm
diff options
context:
space:
mode:
Diffstat (limited to 'test/render/flex/--flexbox-single-line-clamp-3.htm')
-rw-r--r--test/render/flex/--flexbox-single-line-clamp-3.htm42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/render/flex/--flexbox-single-line-clamp-3.htm b/test/render/flex/--flexbox-single-line-clamp-3.htm
new file mode 100644
index 00000000..064864cb
--- /dev/null
+++ b/test/render/flex/--flexbox-single-line-clamp-3.htm
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+--><html>
+<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/flexbox-single-line-clamp-3.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT -->
+<head><meta charset="utf-8">
+<title>CSS Test: Single-line flex containers should clamp their line's height to the container's computed min and max cross-size.</title>
+<link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert">
+<link href="http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/reference/flexbox-single-line-clamp-3-ref.htm" rel="match">
+<link href="https://www.w3.org/TR/css-flexbox-1/#algo-cross-line" rel="help">
+<style>
+.container {
+ display: flex;
+ background: gray;
+ min-height: 80px;
+
+ /* Don't let (default) align-content:stretch save us
+ by stretching the line to fit the container! The point
+ here is that the line should already be clamped to the
+ container's min-height. */
+ align-content: flex-start;
+}
+.panel {
+ background: lightblue;
+ width: 150px;
+}
+.contents {
+ height: 10px;
+ width: 10px;
+ background: purple;
+}
+</style>
+</head>
+<body><div class="container">
+ <div class="panel">
+ <div class="contents"></div>
+ </div>
+</div>
+</body>
+<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/flexbox-single-line-clamp-3.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT -->
+</html> \ No newline at end of file