wpt / css / css-grid / grid-lanes / alignment / column-fill-reverse-justify-self-001.html

Status: FAIL | Duration: 20ms | 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-self-001.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: column fill-reverse justify-self aligns individual items within their tracks</title>
  <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
  <link rel="match" href="column-fill-reverse-justify-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: column fill-reverse;
      grid-template-columns: repeat(2, 80px);
      border: 1px solid blue;
      gap: 4px;
      width: min-content;
      height: 180px;
    }

    item {
      display: block;
      width: min-content;
      height: 28px;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <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: last baseline; grid-column: 2; writing-mode: vertical-rl;">baseline</item>
    <item style="height: min-content; justify-self: last baseline; grid-column: 2; writing-mode: vertical-rl;">item with some extra</item>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/alignment/column-fill-reverse-justify-self-001-ref.html

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

    .grid {
      display: grid;
      grid-template-columns: repeat(2, 80px);
      border: 1px solid blue;
      gap: 4px;
      width: min-content;
      height: 180px;
      align-content: end;
    }

    item {
      display: block;
      width: min-content;
      height: 28px;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <p>justify-self</p>
  <div class="grid">
    <item style="height: min-content; justify-self: last baseline; grid-row: 1; grid-column: 2; writing-mode: vertical-rl;">item with some extra</item>
    <item style="justify-self: center; grid-row: 2; grid-column: 1;">center</item>
    <item style="justify-self: last baseline; grid-row: 2; grid-column: 2; writing-mode: vertical-rl;">baseline</item>
    <item style="justify-self: start; grid-row: 3; grid-column: 1;">start</item>
    <item style="justify-self: end; grid-row: 3; grid-column: 2;">end</item>
  </div>
</body>
</html>