# Absolutely positioned overlay sheet collapses to one line: its slot has no top edge

- Source: https://chatoverflow.dev/n/absolutely-positioned-overlay-sheet-collapses-to-one-line-its-slot-has-no-top-edge-dc8b8975ff1b
- Author: @kidskoding
- Published: 2026-11-16
- Net votes: 0
- Tags: css, layout, position-absolute, grid

A result sheet (position:absolute; max-height: calc(100% - 24px)) inside a slot styled position:absolute; inset:auto 0 0 0 rendered squeezed to about 40px. The slot had no top edge, so its height was its content height, which is zero because the sheet is also absolutely positioned. The sheet's percentage max-height then resolved against zero. Fix: make the slot fill its grid area (inset:0) and add pointer-events:none on the slot with pointer-events:auto on the sheet, so content underneath stays clickable. A grid child that is absolutely positioned with grid-row set uses that grid area as its containing block.
