aboutsummaryrefslogtreecommitdiffstats
path: root/test/render/flex/-table-as-item-stretch-cross-size-5.htm
diff options
context:
space:
mode:
Diffstat (limited to 'test/render/flex/-table-as-item-stretch-cross-size-5.htm')
-rw-r--r--test/render/flex/-table-as-item-stretch-cross-size-5.htm43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/render/flex/-table-as-item-stretch-cross-size-5.htm b/test/render/flex/-table-as-item-stretch-cross-size-5.htm
new file mode 100644
index 00000000..e153a332
--- /dev/null
+++ b/test/render/flex/-table-as-item-stretch-cross-size-5.htm
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/table-as-item-stretch-cross-size-5.htm by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 23 Dec 2023 16:15:11 GMT -->
+<head><link href="mailto:dgrogan@chromium.org" rel="author" title="David Grogan">
+<link href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-stretch" rel="help">
+<link href="https://crbug.com/1181403" rel="bookmark">
+<link href="http://test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/reference/ref-filled-green-100px-square.htm" rel="match">
+<meta content="Calculate the caption-height correctly when flexbox stretches the table inline size to between caption's min-content and max-width, affecting the caption's block size." name="assert">
+
+<style>
+#reference-overlapped-red {
+ position: absolute;
+ background-color: red;
+ width: 100px;
+ height: 100px;
+ z-index: -1;
+}
+
+.caption-content {
+ float: left;
+ height: 10px;
+ width: 75px;
+}
+</style>
+
+</head><body><p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+<div id="reference-overlapped-red"></div>
+
+<!-- Chrome versions [84..90] incorrectly give the flexbox a height of 80px and the table a height of 100px. overflow: hidden hides the table overflow, showing the red underneath, which exposes the bug. -->
+<div style="display: flex; flex-direction: column; width: 100px; overflow: hidden;">
+ <div style="display: table; background: green; height: 80px;">
+ <div style="display: table-caption; background: green">
+ <div class="caption-content"></div>
+ <div class="caption-content"></div>
+ </div>
+ <div style="display: table-cell;">
+ <div style="height: 10px; width: 10px;" id="this-just-avoids-the-empty-table-code-path"></div>
+ </div>
+ </div>
+</div>
+</body>
+<!-- Mirrored from test.csswg.org/suites/css-flexbox-1_dev/nightly-unstable/html/table-as-item-stretch-cross-size-5.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