summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html85
1 files changed, 85 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html b/testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html
new file mode 100644
index 0000000000..1429b25112
--- /dev/null
+++ b/testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html
@@ -0,0 +1,85 @@
+<!DOCTYPE html>
+<html>
+<style>
+.testcase {
+ float: left;
+ background-color: #aaa;
+}
+
+.testcase > :nth-child(1) {
+ background-color: lightblue;
+}
+.testcase > :nth-child(2) {
+ background-color: lightgreen;
+}
+.testcase > :nth-child(3) {
+ background-color: pink;
+}
+.testcase > :nth-child(4) {
+ background-color: yellow;
+}
+
+table {
+ border-spacing: 0;
+ border-collapse: collapse;
+}
+
+td {
+ padding: 0;
+ width: 100px;
+}
+
+</style>
+<body>
+
+<div class="testcase" style="height: 60px; width: 100px">
+ <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="testcase" style="height: 30px; width: 100px">
+ <table>
+ <td>
+ <div style="width: 100px; height: 20px"></div>
+ <div style="width: 100px; height: 10px; background-color: lightgreen"></div>
+ </td>
+ <td>
+ <div style="width: 100px; height: 10px; background-color: pink"></div>
+ <div style="width: 100px; height: 20px; background-color: yellow"></div>
+ </td>
+ </table>
+</div>
+<p style="clear:left">The grey background should be 100px wide.</p>
+
+<div style="width: 150px">
+<div class="testcase" style="height: 60px; width: 100px">
+ <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="testcase" style="height: 35px; width: 100px;">
+ <table>
+ <td>
+ <div style="width: 100px; height: 20px"></div>
+ <div style="width: 100px; height: 10px; background-color: lightgreen"></div>
+ </td>
+ <td>
+ <div style="width: 100px; height: 10px; background-color: pink"></div>
+ <div style="width: 100px; height: 20px; background-color: yellow"></div>
+ </td>
+ </table>
+</div>
+</div>
+<p style="clear:left">The grey background should be 100px wide and 5px should
+stick out the bottom.</p>
+
+</body>
+</html>