wpt / css / css-grid / grid-lanes / alignment / row-fill-reverse-align-self-001.html

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

/css/css-grid/grid-lanes/alignment/row-fill-reverse-align-self-001.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: row fill-reverse with align-self alignment</title>
  <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
  <link rel="match" href="row-fill-reverse-align-self-001-ref.html">
  <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment">
  <style>
    html, body {
      font: 16px/1 monospace;
      background: white;
    }

    .grid-lanes {
      display: grid-lanes;
      grid-lanes-direction: row fill-reverse;
      grid-template-rows: repeat(2, 80px);
      border: 1px solid blue;
      gap: 4px;
      height: min-content;
      width: 180px;
    }

    item {
      display: block;
      width: min-content;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <p>align-self</p>
  <div class="grid-lanes">
    <item style="align-self: start;">start</item>
    <item style="align-self: end;">end</item>
    <item style="align-self: center;">center</item>
    <item style="align-self: last baseline; grid-row: 2;">baseline</item>
    <item style="align-self: last baseline; grid-row: 2;">item with some extra</item>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/alignment/row-fill-reverse-align-self-001-ref.html

<!DOCTYPE html>
<html>
<head>
  <style>
    html, body {
      font: 16px/1 monospace;
      background: white;
    }

    .container {
      display: flex;
      flex-direction: column;
      gap: 4px;
      height: min-content;
      width: 180px;
      border: 1px solid blue;
    }

    .row {
      display: flex;
      flex-direction: row-reverse;
      height: 80px;
      flex-shrink: 0;
      gap: 4px;
    }

    item {
      display: block;
      width: min-content;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <p>align-self</p>
  <div class="container">
    <div class="row">
      <item style="align-self: start;">start</item>
    </div>
    <div class="row">
      <item style="align-self: end;">end</item>
      <item style="align-self: center;">center</item>
      <item style="align-self: last baseline;">baseline</item>
      <item style="align-self: last baseline;">item with some extra</item>
    </div>
  </div>
</body>
</html>