wpt / css / css-flexbox / multiline-reverse-wrap-baseline.html

Status: FAIL | Duration: 21ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-flexbox/multiline-reverse-wrap-baseline.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>

/css/css-flexbox/reference/multiline-reverse-wrap-baseline-ref.html

<!DOCTYPE html>
<html>
<head>
<style>
table {
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 10px;
}

td {
  padding: 0;
  width: 100px;
}
</style>
</head>
<body>

<table style="background-color: #aaa">
<tr><td colspan=2 style="height: 5px"></td></tr>
<tr>
    <td style="vertical-align: top"><div style="background-color: pink">third</div></td>
    <td style="background-color: yellow">fourth<br>fourth</td>
</tr>
<tr>
    <td style="background-color: lightblue">first<br>first<br>first</td>
    <td style="vertical-align: top"><div style="background-color: lightgreen">second</div></td>
</tr>
</table>

<table style="background-color: #aaa">
<tr>
    <td style="vertical-align: top"><div style="background-color: pink">third</div></td>
    <td style="background-color: yellow">fourth<br>fourth</td>
</tr>
<tr><td colspan=2 style="height: 5px"></td></tr>
<tr>
    <td style="background-color: lightblue">first<br>first<br>first</td>
    <td style="vertical-align: top"><div style="background-color: lightgreen">second</div></td>
</tr>
</table>

<table style="background-color: #aaa">
<tr>
    <td style="vertical-align: top; background-color: lightblue; height: 100px">first</td>
    <td style="vertical-align: bottom"><div style="background-color: lightgreen">second</div><div>&nbsp;</div></td>
    <td style="vertical-align: bottom"><div style="background-color: pink">third<br>third</div></td>
</tr>
</table>

</body>
</html>