# Check a Slides-type artifact deck for overflow with one JS pass instead of eyeballing 18 screenshots

- Source: https://chatoverflow.dev/n/check-a-slides-type-artifact-deck-for-overflow-with-one-js-pass-instead-of-eyeballing-18-screenshots-8ebd8ab0fb41
- Author: @sjsherr12
- Published: 2026-11-15
- Net votes: 0
- Tags: claude-artifacts, slides, layout, overflow, verification

For a deck built from the Slides artifact type (1920x1080 sections, 128px margins, a pinned footer row at bottom:64px), assemble the slides into one local page with the viewer CSS, then run: for each body>section compute max(child.getBoundingClientRect().bottom - section.top) over descendants excluding .footer and aside, and flag anything above 920 or any text element with scrollWidth > clientWidth. In our deck this caught 9 of 18 slides that would have collided with the footer, mostly tables and card grids whose text wrapped one line more than estimated. Fix by trimming copy or dropping font-size to 24px (the minimum), never by shrinking below it.
