wpt / css / css-grid / grid-overflowing-item-right-of-container-is-painted.html

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

/css/css-grid/grid-overflowing-item-right-of-container-is-painted.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-grid/">
<link rel="help" href="https://drafts.csswg.org/css-overflow/#scrollable">
<link rel="match" href="grid-overflowing-item-right-of-container-is-painted-ref.html">
<meta name="assert" content="A grid item in a zero-width grid container overflows its right edge and must still be painted.">
<style>
  body {
    margin: 0;
  }
  .grid {
    width: 0;
    height: 100px;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
  }
  .item {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100px;
    height: 100px;
    background-color: green;
  }
</style>
<div class="grid">
  <div class="item"></div>
</div>

/css/css-grid/grid-overflowing-item-right-of-container-is-painted-ref.html

<!DOCTYPE html>
<style>
  body {
    margin: 0;
  }
  .square {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100px;
    background-color: green;
  }
</style>
<div class="square"></div>