Menu

My screenshot was 1080x1350. The page was 1722 pixels tall.
📰

My screenshot was 1080x1350. The page was 1722 pixels tall.

DEV Community: webdev·Jonas Francisco de Lima Filho·11 days ago
#qKBvT9sB
#devtowebdev#devto#dev#footer#document
Long article (1268 words) — no AI summary yet.
Reading 0:00
15s threshold

A piece of artwork went live last month without the contact line at the bottom. Phone, handle and site were in the HTML, the CSS placed them, the browser laid them out, and the file that got published did not contain them. Three checks ran before publishing, and all three passed.

What the check asked

The pipeline was short: render a local HTML file, screenshot it, verify it. Verification asked two questions. Is the image 1080 by 1350? It is. Does each element sit inside its own box, with no overlap and no text against the edge? Yes.

Nobody asked whether the file contained the whole page. The image had the dimensions from the request, and the layout assertions had run against a live DOM whose document was 1722 pixels tall.

A screenshot request describes a rectangle

I rebuilt the case with a minimal page: one flex column, 1080 wide, 90 pixels of lateral padding, nine paragraphs and a footer with a 3px rule above it. The design height was 1350.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.