mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
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
73 lines
2.1 KiB
HTML
73 lines
2.1 KiB
HTML
<!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>
|