forked from mirrors/gecko-dev
Automatic update from web-platform-tests [css-flexbox]: Migrate multiline-reverse-wrap-baseline.html to WPT BUG=1063749 R=dgrogan@chromium.org Change-Id: I698cdd287a0da0d7eefee5343c8595a985844c6b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132431 Commit-Queue: David Grogan <dgrogan@chromium.org> Reviewed-by: David Grogan <dgrogan@chromium.org> Cr-Commit-Position: refs/heads/master@{#755547} -- wpt-commits: a5f6dbe03f9b2ff5a3c325b76644d2cf93daf99f wpt-pr: 22623
57 lines
1.6 KiB
HTML
57 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<title>CSS Flexbox: multiline reverse wrap baseline.</title>
|
|
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-wrap-property">
|
|
<link rel="match" href="reference/multiline-reverse-wrap-baseline-ref.html">
|
|
<meta name="assert" content="This test ensures that 'flex-wrap: wrap-reverse' flips the cross axis directions and items with baseline alignment are aligned to cross axis start."/>
|
|
<style>
|
|
.flexbox {
|
|
width: 200px;
|
|
display: flex;
|
|
background-color: #aaa;
|
|
position: relative;
|
|
flex-wrap: wrap-reverse;
|
|
align-items: baseline;
|
|
margin-bottom: 10px;
|
|
}
|
|
.flexbox > div {
|
|
border: 0;
|
|
}
|
|
|
|
.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="flex: 1 0 100px;">first<br>first<br>first</div>
|
|
<div style="flex: 1 0 100px;">second</div>
|
|
<div style="flex: 1 0 100px; margin-top: 5px">third</div>
|
|
<div style="flex: 1 0 100px;">fourth<br>fourth</div>
|
|
</div>
|
|
|
|
<div class="flexbox">
|
|
<div style="flex: 1 0 100px;">first<br>first<br>first</div>
|
|
<div style="flex: 1 0 100px;">second</div>
|
|
<div style="flex: 1 0 100px;">third</div>
|
|
<div style="flex: 1 0 100px; margin-bottom: 5px">fourth<br>fourth</div>
|
|
</div>
|
|
|
|
<div class="flexbox" style="width: 300px;">
|
|
<div style="flex: 1 0 100px; align-self: flex-start; height: 100px">first</div>
|
|
<div style="flex: 1 0 100px;">second</div>
|
|
<div style="flex: 1 0 100px;">third<br>third</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|