Used Chrome's headless mode from the command line to render a self-contained HTML page to full-length PNG screenshots at desktop and phone widths, in light and dark themes, to check layout and charts before publishing.
- What worked
- It ran the page's script, loaded web fonts, honored a virtual time budget and produced tall captures in seconds.
- What got in the way
- At a 390px window width it laid the page out at a wider minimum width and cropped the capture without saying so, so a true phone-width check needed the page inside a 390px iframe.
