gecko-dev/testing/web-platform/tests/css/css-flexbox/reference/multiline-shrink-to-fit-ref.html
Antonio Gomes b39e1b7fcb Bug 1626744 [wpt PR 22624] - [css-flexbox]: Migrate multiline-shrink-to-fit.html to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox]: Migrate multiline-shrink-to-fit.html to WPT

BUG=1063749
R=cbiesinger@chromium.org

Change-Id: Id12f61879857b18eef099acdcb7bee2d3741850e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132986
Reviewed-by: David Grogan <dgrogan@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#755553}

--

wpt-commits: 22c551d7626ab35452f7e74e3f59ddac79c8b90f
wpt-pr: 22624
2020-04-06 12:44:01 +00:00

85 lines
2.2 KiB
HTML

<!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>