wpt / css / css-grid / grid-lanes / alignment / column-fill-reverse-align-content-safe-001.html

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

/css/css-grid/grid-lanes/alignment/column-fill-reverse-align-content-safe-001.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: column `fill-reverse` with safe content alignment</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-fill-reverse-align-content-safe-001-ref.html">
  <style>
    html, body {
      font: 16px/1 monospace;
      background: white;
    }

    body {
      padding: 40px;
    }

    .grid-lanes {
      display: grid-lanes;
      grid-lanes-direction: column fill-reverse;
      grid-template-columns: 80px;
      gap: 4px;
      width: 100px;
      height: 60px;
      border: 1px solid;
      margin-bottom: 40px;
    }

    item {
      display: block;
      width: 40px;
      height: 40px;
      color: white;
      background: #2ca02c;
    }
  </style>
</head>
<body>
  <div class="grid-lanes" style="align-content: safe start;">
    <item>1</item>
    <item>2</item>
  </div>

  <div class="grid-lanes" style="align-content: safe center;">
    <item>1</item>
    <item>2</item>
  </div>

  <div class="grid-lanes" style="align-content: safe end;">
    <item>1</item>
    <item>2</item>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/alignment/column-fill-reverse-align-content-safe-001-ref.html

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

    body {
      padding: 40px;
    }

    .container {
      display: grid;
      grid-template-columns: 80px;
      gap: 4px;
      width: 100px;
      height: 60px;
      border: 1px solid;
      margin-bottom: 40px;
    }

    item {
      display: block;
      width: 40px;
      height: 40px;
      color: white;
      background: #2ca02c;
    }
  </style>
</head>
<body>
  <div class="container" style="align-content: end;">
    <item>2</item>
    <item>1</item>
  </div>

  <div class="container" style="align-content: end;">
    <item>2</item>
    <item>1</item>
  </div>

  <div class="container" style="align-content: end;">
    <item>2</item>
    <item>1</item>
  </div>
</body>
</html>