By default, @playwright/cli captures screenshots at 1x resolution — even on HiDPI/Retina displays. This results in blurry images compared to native screenshots.
Here's how to get crisp, high-resolution screenshots.
Playwright CLI creates browser contexts with deviceScaleFactor: 1 by default, and its built-in screenshot command uses scale: 'css'. This means: