wpt / css / css-grid / grid-lanes / tentative / intrinsic-sizing / grid-lanes-baseline-alignment-affects-intrinsic-size-004.html

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

/css/css-grid/grid-lanes/tentative/intrinsic-sizing/grid-lanes-baseline-alignment-affects-intrinsic-size-004.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: evaluate how baseline alignment with multi-span items affects intrinsic track sizes</title>
  <link rel="author" title="Yanling Wang" href="mailto:yanlingwang@microsoft.com">
  <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing-performance">
  <link rel="match" href="grid-lanes-baseline-alignment-affects-intrinsic-size-004-ref.html">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <style>
    .grid-lanes {
      display: grid-lanes;
      width: 200px;
      margin-bottom: 20px;
      align-items: baseline;
      background: lightgray;
      font-family: Ahem;
      line-height: 1;
    }
  </style>
</head>
<body>
<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-bottom: 40px; width: 50px; background: lightblue; grid-row: 1;">É</div>
  <div style="font-size: 20px; padding-top: 50px; width: 50px; background: lightgreen; grid-row: 1 / span 2;">É</div>
</div>

<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-top: 20px; width: 50px; background: coral; grid-row: 1 / span 2;">É</div>
  <div style="font-size: 30px; width: 50px; background: plum; grid-row: 1 / span 2;">É</div>
</div>

<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-bottom: 30px; width: 50px; background: lightsalmon; grid-row: 1;">É</div>
  <div style="font-size: 20px; padding-top: 40px; width: 50px; background: palegreen; grid-row: 1 / span 2;">É</div>
</div>

<div class="grid-lanes" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-bottom: 30px; width: 50px; background: gold; grid-row: 1;">É</div>
  <div style="font-size: 20px; padding-top: 40px; width: 50px; background: lavender; grid-row: 1 / span 2;">É</div>
  <div style="font-size: 30px; padding-bottom: 10px; width: 50px; background: lightcyan; grid-row: 1;">É</div>
</div>
</body>
</html>

/css/css-grid/grid-lanes/tentative/intrinsic-sizing/grid-lanes-baseline-alignment-affects-intrinsic-size-004-ref.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <style>
    .grid {
      display: grid;
      grid-template-columns: repeat(3, 50px);
      width: 200px;
      margin-bottom: 20px;
      align-items: baseline;
      background: lightgray;
      font-family: Ahem;
      line-height: 1;
    }
  </style>
</head>
<body>
<div class="grid" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-bottom: 40px; width: 50px; background: lightblue; grid-row: 1;">É</div>
  <div style="font-size: 20px; padding-top: 50px; width: 50px; background: lightgreen; grid-row: 1 / span 2;">É</div>
</div>

<div class="grid" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-top: 20px; width: 50px; background: coral; grid-row: 1 / span 2;">É</div>
  <div style="font-size: 30px; width: 50px; background: plum; grid-row: 1 / span 2;">É</div>
</div>

<div class="grid" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-bottom: 30px; width: 50px; background: lightsalmon; grid-row: 1;">É</div>
  <div style="font-size: 20px; padding-top: 40px; width: 50px; background: palegreen; grid-row: 1 / span 2;">É</div>
</div>

<div class="grid" style="grid-template-rows: minmax(0px, auto) minmax(0px, auto);">
  <div style="font-size: 20px; padding-bottom: 30px; width: 50px; background: gold; grid-row: 1;">É</div>
  <div style="font-size: 20px; padding-top: 40px; width: 50px; background: lavender; grid-row: 1 / span 2;">É</div>
  <div style="font-size: 30px; padding-bottom: 10px; width: 50px; background: lightcyan; grid-row: 1;">É</div>
</div>
</body>
</html>