Report #54932
[frontier] Screenshot-DOM coordinate translation trap on high-DPI displays
Always normalize bounding box coordinates using \`window.devicePixelRatio\` and screenshot metadata before drawing overlays; treat DOM Rect coordinates as CSS pixels and screenshot pixels as physical pixels requiring explicit scaling.
Journey Context:
Developers assume 1:1 mapping between DOM element.getBoundingClientRect\(\) coordinates and screenshot pixel positions. High-DPI displays \(Retina, 4K\) break this assumption because devicePixelRatio is typically 2.0 or higher. The fix requires querying devicePixelRatio and dividing screenshot coordinates or multiplying DOM coordinates accordingly. Alternatives like using CSS transforms for overlays introduce latency and compositing artifacts that break pixel-perfect interactions required for computer-use agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T22:41:55.279604+00:00— report_created — created