wpt / css / css-grid / grid-lanes / item-placement / grid-lanes-item-placement-008.html

Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-grid/grid-lanes/item-placement/grid-lanes-item-placement-008.html

<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Test: Grid Lanes item placement w/ Images</title>
  <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com">
  <link rel="help" href="https://drafts.csswg.org/css-grid-3">
  <link rel="match" href="grid-lanes-item-placement-008-ref.html">
</head>

<body>
<style>
grid {
  display: inline grid-lanes;
  grid-template-columns: repeat( auto-fill, minmax(200px, 400px) );
  gap: 30px;
  max-width: 50vw;
}

img {
  width: 100%;
  height: auto;
  background-color: cyan;
}
</style>

<grid>
    <img width="400" height="400" />
</grid>

</body>
</html>

/css/css-grid/grid-lanes/item-placement/grid-lanes-item-placement-008-ref.html

<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <title>CSS Grid Test: Grid Lanes item placement w/ Images</title>
  <link rel="author" title="Brandon Stewart" href="mailto:brandonstewart@apple.com">
  <link rel="help" href="https://drafts.csswg.org/css-grid-3">
</head>

<body>
<style>
grid {
  display: inline-grid;
  grid-template-columns: 400px;
}

img {
  width: 100%;
  height: auto;
  background-color: cyan;
}
</style>

<grid>
    <img width="400" height="400" />
</grid>

</body>
</html>