wpt / css / css-grid / grid-lanes / alignment / column-fill-reverse-justify-content-002.html

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

/css/css-grid/grid-lanes/alignment/column-fill-reverse-justify-content-002.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: column fill-reverse with justify-content: baseline</title>
  <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
  <link rel="match" href="column-fill-reverse-justify-content-002-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: column fill-reverse;
      grid-template-columns: 80px;
      gap: 4px;
      width: 200px;
      height: 180px;
      border: 1px solid;
    }

    item {
      display: block;
      width: min-content;
      height: 28px;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <!-- Container alignment -->
  <p>justify-content: baseline</p>
  <div class="grid-lanes" style="justify-content: baseline;">
    <item>start</item>
    <item>center</item>
    <item>end</item>
  </div>

  <!-- Self alignment -->
  <p>justify-self</p>
  <div class="grid-lanes">
    <item style="justify-self: start;">start</item>
    <item style="justify-self: end;">end</item>
    <item style="justify-self: center;">center</item>
    <item style="justify-self: baseline;">baseline</item>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/alignment/column-fill-reverse-justify-content-002-ref.html

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

    .grid {
      display: grid;
      grid-template-columns: 80px;
      gap: 4px;
      width: 200px;
      height: 180px;
      border: 1px solid;
      align-content: end;
    }

    item {
      display: block;
      width: min-content;
      height: 28px;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <!-- Container alignment (baseline falls back to start) -->
  <p>justify-content: baseline</p>
  <div class="grid" style="justify-content: start;">
    <item>end</item>
    <item>center</item>
    <item>start</item>
  </div>

  <!-- Self alignment -->
  <p>justify-self</p>
  <div class="grid">
    <item style="justify-self: start;">baseline</item>
    <item style="justify-self: center;">center</item>
    <item style="justify-self: end;">end</item>
    <item style="justify-self: start;">start</item>
  </div>
</body>
</html>