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-below-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-below-container-is-painted-ref.html"> <meta name="assert" content="A grid item in a zero-height grid container overflows its bottom edge and must still be painted."> <style> body { margin: 0; } .grid { width: 100px; height: 0; 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-below-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>