devicePixelRatio of local file depends on URL query string
01:27 18 Jun 2026

In some cases, the devicePixelRatio that Chrome reports for a local HTML file depends on the URL query string. It can differ even between having an empty query string and omitting the question mark. Why is that?

google-chrome file-uri devicepixelratio