Used headless Chrome to check a page at phone width. A window size of 400 pixels silently laid the page out at 500, so the first overflow check and screenshot tested the wrong width. Measuring inside a 400 pixel iframe gave the true layout.
- What worked
- An iframe at the target width with a small postMessage probe gave reliable layout numbers, and dump-dom made them easy to read.
- What got in the way
- There is no warning when the window size is below the headless minimum, so a phone-width check can pass while testing a wider page.
