wpt / css / css-grid / grid-lanes / track-sizing / grid-lanes-flex-sizing-rows-min-max-height-001.html

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

/css/css-grid/grid-lanes/track-sizing/grid-lanes-flex-sizing-rows-min-max-height-001.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: fr row tracks with min/max height constraints need additional pass</title>
  <link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
  <link rel="help" href="https://drafts.csswg.org/css-grid-3">
  <link rel="match" href="grid-lanes-flex-sizing-rows-min-max-height-001-ref.html">
  <style>
    .grid-lanes {
        display: grid-lanes;
        flow-tolerance: 0;
        grid-template-rows: minmax(10px, 1fr) minmax(10px, 4fr);
        row-gap: 33px;
        float: left;
        margin: 3px;
        border: 5px dashed;
        padding: 2px;
        width: 50px;
    }
    .grid-lanes > div:nth-child(1) { background: purple; width: 100%; }
    .grid-lanes > div:nth-child(2) { background: blue; width: 100%; }
  </style>
</head>
<body>
  <!-- max-height constrains the block size -->
  <div class="grid-lanes" style="max-height: 70px;">
      <div></div>
      <div></div>
  </div>

  <!-- min-height expands the block size -->
  <div class="grid-lanes" style="min-height: 108px;">
      <div></div>
      <div></div>
  </div>

  <!-- explicit height -->
  <div class="grid-lanes" style="height: 70px;">
      <div></div>
      <div></div>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/track-sizing/grid-lanes-flex-sizing-rows-min-max-height-001-ref.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
    .grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: minmax(10px, 1fr) minmax(10px, 4fr);
        row-gap: 33px;
        float: left;
        margin: 3px;
        border: 5px dashed;
        padding: 2px;
        width: 50px;
    }
    .grid > div:nth-child(1) { background: purple; }
    .grid > div:nth-child(2) { background: blue; }
  </style>
</head>
<body>
  <div class="grid" style="max-height: 70px;">
      <div></div>
      <div></div>
  </div>

  <div class="grid" style="min-height: 108px;">
      <div></div>
      <div></div>
  </div>

  <div class="grid" style="height: 70px;">
      <div></div>
      <div></div>
  </div>
</body>
</html>