Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
This should not change any observable behavior of WebView.Does the feature depend on any code or APIs outside the Chromium open source repository and its open-source dependencies to function?
Depends on Android providing a public API for apps to learn whereabouts of the windows they are in.| Shipping on Android | 145 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
No spec changes – Chrome for Android catches up.On 12/10/25 1:00 p.m., Chromestatus wrote:
Contact emailschomi...@google.com
Specificationhttps://www.w3.org/TR/cssom-view-1/#dom-window-screenx
SummaryChrome on Android accurately reports the browser window's position and size using window.screenX, window.screenY, window.outerWidth, and window.outerHeight. Previously Chrome incorrectly assumed 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). Moreover, Chrome on Android incorrectly assumed that outer dimensions of the browser window are equal to the inner dimensions of the website viewport. Remark: window.screenX and window.screenY have aliases, window.screenLeft and window.screenTop.
Blink componentBlink>HTML
Web Feature IDwindow
MotivationChrome 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 proposalNo information provided
Search tagswindow, position, screen, coordinates, android
TAG reviewNo information provided
TAG review statusNot applicable
Risks
Interoperability and CompatibilityNo information provided
Gecko: No signal
WebKit: No signal
Web developers: No signals
Other signals:
WebView application risksDoes this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
This should not change any observable behavior of WebView.
DebuggabilityNo information provided
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?Yes
Is this feature fully tested by web-platform-tests?No
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6939b532.710a0220.1d2509.0737.GAE%40google.com.
Thanks for the detailed reply!
LGTM1, this seems like a low-risk bug fix.
> This sounds like a straightforward bug fix, but there's possibly some scenario where sites are using 0 screenLeft/screenX values as a proxy for Android vs Desktop. Are we aware of sites or use cases that are broken today that will be fixed with this change?
The "PayPal Checkout" button seen on many e-commerce websites uses this data to launch a pop-up for payment authorization at the center of the original window hosting the e-commerce website.
> What do the other browsers do in tablet (Safari, Firefox) or Android on desktop form factor (Firefox?) scenarios?
Firefox already reports these values correctly on Android tablets besides from
- a difference in accounting the space between the website viewport and the OS-level window (mostly occupied by the URL bar and tab strip) – MDN states that window.screenX "returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport to the left side of the screen." while the W3C Working Draft of CSSOM View Module states that "The screenX and screenLeft attributes must return the x-coordinate, relative to the origin of the Web-exposed screen area, of the left of the client window as number of CSS pixels, or zero if there is no such thing.". Chrome on ChromeOS uses the latter approach and this feature for Android also uses the latter approach.
- no support for multi-display topology – the screenX and screenY values provided by Firefox are always relative to the origin of the display currently hosting the browser window, not relative to the origin of the global coordinate system spanning all displays that uses data from OS-provided display topology.
Safari reports window.screenX = 0 and window.screenY = 0 on iPad regardless of the actual position of the window on screen (fullscreen vs. right half in split-screen).
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.