Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Intent to Prototype: Show true window position on Android

73 views
Skip to first unread message

Bartosz Chomiński

unread,
May 14, 2025, 11:26:51 AMMay 14
to blin...@chromium.org, Monika Mitchell, Sam Richard, Windowing in Web Apps on ChromeOS and Android

Contact emails

chomi...@google.com

Explainer

None

Specification

https://www.w3.org/TR/cssom-view-1/#dom-window-screenx

Summary

Chrome on Android accurately reports the browser window's position using window.screenX and window.screenY. Currently Chrome incorrectly assumes all browser windows on Android start at coordinates (0, 0). This is inaccurate for Android tablets using freeform windowing mode, causing websites to always receive 0 when querying the window's on-screen position using window.screenX and window.screenY (these fields store the coordinates of window's top-left corner in global work area coordinate space). Remark: window.screenX and window.screenY have aliases, window.screenLeft and window.screenTop.



Blink component

Blink>HTML

Motivation

Chrome on Android in desktop form factors should be in functional parity with Chrome for other desktop operating systems. This includes the ability to report valid window position to websites that query window.screenX or window.screenY fields (also aliases, window.screenLeft and window.screenTop).



Initial public proposal

None

Search tags

windowpositionscreencoordinatesandroid

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None

We do not intend to change window.screen* APIs behavior for WebView.



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on about://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://g-issues.chromium.org/issues/417632037

Launch bug

https://launch.corp.google.com/launch/4400019

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5164958878531584?gate=5103671171612672

This intent message was generated by Chrome Platform Status.

Reply all
Reply to author
Forward
0 new messages