# Why --force-device-scale-factor looks blurry

> On a Retina panel, --force-device-scale-factor=1 painted 800x513 pixels where the window needed 1600x1026. Our engine now claims the value and paints natively.

Source: https://mosaicbrowser.com/blog/force-device-scale-factor-blurry

## Why --force-device-scale-factor made our profiles blurry

On a Retina panel, --force-device-scale-factor=1 painted 800x513 pixels where the window needed 1600x1026. Our engine now claims the value and paints natively.

![1/4: A quarter of the pixels, scaled up](https://mosaicbrowser.com/covers/force-device-scale-factor-blurry.webp)

`--force-device-scale-factor` looks blurry because it does more than change a number. It tells Chromium to paint at that scale. Set it to 1 on a Retina display and the browser paints one pixel where the panel has four, then the image is stretched up to fill the window, and text goes soft. If all you wanted was for pages to read a different `devicePixelRatio`, the switch is the wrong tool.

We used it for exactly that, and it is how a quarter of our profiles came out blurry.

## What we measured

Each Mosaic profile claims a screen, and the screen comes with a device pixel ratio: 2 for a Retina MacBook, 1 for most external monitors. For a long time the engine claimed it with Chromium's own `--force-device-scale-factor`. The comment defending that choice said the switch was better than a change in the engine because it "moves the compositor as well as `devicePixelRatio`, so the page really is rendered at the claimed scale".

It does move the compositor, and that was the bug. The report came from inside the product: profiles look blurry. Measured on a 3024x1964 Retina panel, with one window kept at 800x513 CSS pixels throughout:

```
no flag, or force=2    painted 1600x1026 device pixels
force=1                painted  800x513  device pixels

```

The window covers the same physical area in both rows. In the second it holds a quarter of the pixels, scaled up. Four draws in sixteen on that machine claim a ratio of 1, which is every external monitor in our device catalogue, so roughly one profile in four was painting at a quarter of the panel's resolution.

People hit the same thing from the other direction. Electron's issue tracker has threads going back to 2015 where `--force-device-scale-factor=1` is passed to fix blur on a fractional scale, and the cost reported back is a window whose text and menus shrink. Either way, the switch decides the rendering scale for the whole window.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Machines that exist](https://mosaicbrowser.com/features/real-fingerprints)

## The reason for the flag was testable, and false

The argument for the switch was that a ratio only JavaScript could see would be contradicted by the first `toDataURL()` of a rendered page. A canvas, though, has its own backing store, and its `width` and `height` are in canvas pixels, not device pixels. So we drew the same canvas at a forced factor of 1 and of 2:

```
canvasBacking 300x150   dataUrlBytes 5430   pixelHash 80f76a1b   (both)

```

Byte for byte the same. The canvas was the surface the switch was meant to keep honest, and it cannot see the scale factor in the first place.

## What the engine does instead

Tesseract Chrome, [our engine](https://mosaicbrowser.com/features/engine), is stock Chromium source with our own changes, and one of them moves the value where it is reported and nowhere else. A page reads the ratio through two places in Blink:

- `LocalDOMWindow::devicePixelRatio`, which is what `window.devicePixelRatio` returns to script.
- `MediaValues::CalculateDevicePixelRatio`, which answers the `resolution` and `-webkit-device-pixel-ratio` media queries, picks the `srcset` candidate, and fills the DPR client hint.

Both now return the profile's claimed value, set by our own `--fingerprint-device-pixel-ratio` switch. Changing only the first would have left a page able to ask `matchMedia('(resolution: 2dppx)')` and get the real answer, and a value that differs between script and CSS is a louder signal than either value alone.

`LocalFrame::DevicePixelRatio` is left alone on purpose, even though both of those call into it. Paint, cull-rect updates and style resolution read it too, so changing it would have put the blur back one level down. The job here was to find the callers to avoid.

Checked through the running app on two of the profiles that used to be soft:

```
claimed 1 (1920x1080)   page reports 1, (resolution: 1dppx) true, paints at 2x
claimed 1 (3440x1440)   page reports 1, (resolution: 1dppx) true, paints at 2x

```

The page sees a 1x screen, and the window is drawn at the panel's full resolution.

## If you are using the switch yourself

If your Chrome or Electron app is blurry and the command line has `--force-device-scale-factor` on it, take it off first. If the value matches the display's own scale, it changes nothing; if it is lower, you are painting fewer pixels than the screen has, and nothing downstream can add the detail back.

The broader lesson for us is that a switch which changes what the browser does is a behaviour change that happens to move a value. Check what else it moves before you use it as a fingerprint. How the screen values a profile claims are drawn together is in [real fingerprints](https://mosaicbrowser.com/features/real-fingerprints), and another CSS route to the same screen, the one a detector used against an earlier version of the engine, is in [the device-width media query](https://mosaicbrowser.com/blog/device-width-media-query).

## Sources

1. [MDN: Window.devicePixelRatio](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio), read November 3, 2026
2. [MDN: resolution media feature](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/resolution), read November 3, 2026
3. [Electron issue 3349: blurry rendering on high-DPI after the Chrome 45 upgrade](https://github.com/electron/electron/issues/3349), read November 3, 2026

## Questions

### Why does --force-device-scale-factor make Chrome blurry?

Because it changes how many pixels Chrome paints, not only the number it reports. Set to 1 on a 2x display, Chrome paints a quarter of the pixels the window covers and the result is stretched up to the panel, which softens text and edges.

### How do I fix blur from --force-device-scale-factor?

Remove the switch, or set it to the display's real scale. If you only need pages to read a different devicePixelRatio, the switch is the wrong tool, because it moves the rendering as well as the value.

### Does a canvas fingerprint change with the device scale factor?

Not by itself. We drew the same canvas at a forced factor of 1 and of 2 and got the same 300x150 backing store, the same 5430-byte data URL and the same pixel hash, because a canvas sizes its own backing store.

### Where does a page read the device pixel ratio?

From window.devicePixelRatio in script, and from the resolution and -webkit-device-pixel-ratio media queries, srcset image selection and the DPR client hint. A claimed value has to agree in all of them.

## Related

[screen.width said 1728 and a media query said 1512](https://mosaicbrowser.com/blog/device-width-media-query): A binary search over max-device-width finds the real screen whatever screen.width claims. Fixing that route took IPHey from 90 to 100 on one profile.

[Half a spoof is a contradiction](https://mosaicbrowser.com/blog/half-a-spoof): Partial fingerprint spoofing detection is simple: ask one question two ways. We cut five spoofs that changed one route to a value and left the other.

[Machines that exist: fingerprints drawn from real hardware](https://mosaicbrowser.com/features/real-fingerprints): Mosaic draws each profile's GPU, screen, CPU, memory and fonts from one real device, so the parts of a fingerprint agree with each other and with the host.

[An anti-detect browser with its own Chromium engine](https://mosaicbrowser.com/features/engine): Mosaic is an anti-detect browser with its own Chromium engine, Tesseract Chrome: stock Chromium source, with fingerprint values changed inside the engine.

[readPixels and toDataURL read a canvas from opposite ends](https://mosaicbrowser.com/blog/webgl-readpixels-vs-todataurl): readPixels starts at the bottom row and toDataURL at the top, so position-keyed WebGL noise disagreed with itself. Keyed on colour, 4096 of 4096 pixels agree.







[The RTT client hint, read off the wire](https://mosaicbrowser.com/blog/rtt-on-the-wire): ECT, RTT and Downlink headers behind a proxy, measured: a claimed round trip moved JavaScript to 300 and left the RTT header at 50. So we claim neither.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
