The track above is a real scroll container, so every pixel counted is a pixel the browser genuinely moved. Nothing is inferred from WheelEvent.deltaY, which means a mouse reporting lines instead of pixels is measured just as fairly as one reporting pixels, and a trackpad’s momentum counts exactly as far as it actually travelled.
The conversion is the CSS definition and nothing more: 96 px to the inch, 25.4 mm to the inch, so 3,779.53 px to the metre. Your monitor’s real physical pixel pitch is not involved — this is a distance in layout units, the same on a phone and on a 4K display.
- 10 m
- 37,795 px
- 50 m
- 188,976 px
- 100 m
- 377,953 px
- 500 m
- 1,889,764 px