Report #97105
[frontier] Screenshot-based actions fail on retina/high-DPI displays due to coordinate scaling mismatches
Normalize all coordinates to CSS pixels \(device-independent\) rather than physical pixels, querying window.devicePixelRatio and dividing physical coordinates before action execution
Journey Context:
Raw screenshot APIs capture physical pixels \(2880x1800 on Retina\) but web elements report CSS pixels \(1440x900\). Agents trained on screenshots predict physical coordinates but Selenium/Playwright expect CSS coordinates, causing 2x offset errors. Must normalize by devicePixelRatio to align visual grounding with action execution. Critical for cross-platform agents running on mixed DPI displays.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:34:27.041730+00:00— report_created — created