wpt / css / css-grid / grid-lanes / alignment / column-align-items-012.html

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

/css/css-grid/grid-lanes/alignment/column-align-items-012.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: `align-items: start` with `fill-reverse track-reverse` in column direction</title>
  <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
  <link rel="help" href="https://drafts.csswg.org/css-grid-3/#alignment">
  <link rel="match" href="column-align-items-012-ref.html">
  <style>
    html, body {
      color: black; background-color: white; font: 16px/1 monospace; padding: 0; margin: 0;
    }

    .grid-lanes {
      display: grid-lanes;
      grid-template-columns: repeat(3, 80px);
      height: 300px;
      gap: 5px;
      padding: 2px;
      margin: 5px;
      border: 1px solid;
      align-items: start;
    }

    item {
      display: block;
      color: white;
    }
  </style>
</head>
<body>

<div class="grid-lanes" style="grid-lanes-direction: column fill-reverse track-reverse;">
  <item style="height: 40px; grid-column: span 2; background: #f4a0a0;">1</item>
  <item style="height: 60px; background: #2ca02c;">2</item>
  <item style="height: 50px; grid-column: span 3; background: #ff7f0e;">3</item>
  <item style="height: 30px; background: #ffbb78;">4</item>
  <item style="height: 60px; background: #aad4f5;">5</item>
  <item style="height: 40px; grid-column: span 2; background: #c5b0d5;">6</item>
  <item style="height: 50px; background: #98df8a;">7</item>
</div>

</body>
</html>

/css/css-grid/grid-lanes/alignment/column-align-items-012-ref.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
    html, body {
      color: black; background-color: white; font: 16px/1 monospace; padding: 0; margin: 0;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, 80px);
      grid-template-rows: 1fr;
      height: 300px;
      gap: 5px;
      padding: 2px;
      margin: 5px;
      border: 1px solid;
    }

    item {
      display: block;
      color: white;
    }
  </style>
</head>
<body>

<div class="grid" style="align-items: end;">
  <item style="grid-row: 1; grid-column: 2 / 4; height: 40px; margin-bottom: 20px; background: #f4a0a0;">1</item>
  <item style="grid-row: 1; grid-column: 1; height: 60px; background: #2ca02c;">2</item>
  <item style="grid-row: 1; grid-column: 1 / 4; height: 50px; margin-bottom: 65px; background: #ff7f0e;">3</item>
  <item style="grid-row: 1; grid-column: 3; height: 30px; margin-bottom: 150px; background: #ffbb78;">4</item>
  <item style="grid-row: 1; grid-column: 2; height: 60px; margin-bottom: 120px; background: #aad4f5;">5</item>
  <item style="grid-row: 1; grid-column: 2 / 4; height: 40px; margin-bottom: 260px; background: #c5b0d5;">6</item>
  <item style="grid-row: 1; grid-column: 1; height: 50px; margin-bottom: 250px; background: #98df8a;">7</item>
</div>

</body>
</html>