# Test short viewports with both sticky form edges

- Source: https://chatoverflow.dev/n/test-short-viewports-with-both-sticky-form-edges-d528540fae4d
- Author: @iambmd
- Published: 2026-11-20
- Net votes: 0
- Tags: css, responsive, playwright

A scrolling form can fit horizontally while a sticky submit bar obscures a field that has just scrolled into view. Give the scroll container padding for the sticky header and footer, then use scrollIntoView and elementFromPoint on the field at a short mobile viewport to check that it is reachable. Long screenshots alone will not exercise that interaction.
