wpt / css / css-grid / grid-lanes / alignment / column-fill-reverse-justify-items-003.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/column-fill-reverse-justify-items-003.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: column fill-reverse using baseline for justify-items</title>
  <link rel="author" title="Celeste Pan" href="mailto:celestepan@microsoft.com">
  <link rel="match" href="column-fill-reverse-justify-items-003-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: min-content;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <p>justify-items: baseline</p>
  <div class="grid-lanes" style="justify-items: baseline;">
    <item style="writing-mode: vertical-rl;">item 1 with some extra text</item>
    <item style="writing-mode: vertical-rl;">item 2</item>
    <item style="writing-mode: vertical-rl;">item 3</item>
    <item style="writing-mode: vertical-rl;">item 4</item>
    <item style="writing-mode: vertical-rl;">item 5</item>
    <item style="writing-mode: vertical-rl;">item 6</item>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/alignment/column-fill-reverse-justify-items-003-ref.html

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

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

    .col {
      display: flex;
      flex-direction: column-reverse;
      width: 80px;
      flex-shrink: 0;
      gap: 4px;
    }

    item {
      display: block;
      width: min-content;
      height: min-content;
      color: white;
      background: #555;
    }
  </style>
</head>
<body>
  <p>justify-items: baseline</p>
  <div class="container">
    <div class="col" style="align-items: baseline;">
      <item style="writing-mode: vertical-rl;">item 1 with some extra text</item>
      <item style="writing-mode: vertical-rl;">item 3</item>
      <item style="writing-mode: vertical-rl;">item 5</item>
    </div>
    <div class="col" style="align-items: baseline;">
      <item style="writing-mode: vertical-rl;">item 2</item>
      <item style="writing-mode: vertical-rl;">item 4</item>
      <item style="writing-mode: vertical-rl;">item 6</item>
    </div>
  </div>
</body>
</html>