wpt / css / css-grid / grid-lanes / overflow / grid-lanes-overflowing-container-005.html

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

/css/css-grid/grid-lanes/overflow/grid-lanes-overflowing-container-005.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Lanes Test: items stacking overflow in grid-lanes</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-overflowing-container-005-ref.html">
  <meta name="assert" content="This test verifies that a horizontal scrollbar appears when multiple items stacking in the inline axis overflow the grid-lanes container.">
  <style>
    .grid-lanes {
      display: grid-lanes;
      flow-tolerance: 0;
      grid-template-rows: 50px;
      width: 100px;
      height: 100px;
      border: 2px solid black;
      overflow: auto;
    }
  </style>
</head>
<body>
  <p>Test passes if the container has only a horizontal scrollbar and the three colored items overflow to the right.</p>
  <div class="grid-lanes">
    <div style="width:50px; height:50px; background:rgba(255,127,80,0.6);"></div>
    <div style="width:50px; height:50px; background:rgba(70,130,180,0.6);"></div>
    <div style="width:50px; height:50px; background:rgba(60,179,113,0.6);"></div>
  </div>
</body>
</html>

/css/css-grid/grid-lanes/overflow/grid-lanes-overflowing-container-005-ref.html

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
    .container {
      display: grid;
      grid-auto-flow: column;
      grid-template-rows: 50px;
      width: 100px;
      height: 100px;
      border: 2px solid black;
      overflow: auto;
    }
  </style>
</head>
<body>
  <p>Test passes if the container has only a horizontal scrollbar and the three colored items overflow to the right.</p>
  <div class="container">
    <div style="width:50px; height:50px; background:rgba(255,127,80,0.6);"></div>
    <div style="width:50px; height:50px; background:rgba(70,130,180,0.6);"></div>
    <div style="width:50px; height:50px; background:rgba(60,179,113,0.6);"></div>
  </div>
</body>
</html>