Contact emailschomins...@google.com

ExplainerNone

Specificationhttps://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 componentBlink>HTML
<https://issues.chromium.org/issues?q=customfield1222907:%22Blink%3EHTML%22>

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 proposalNone

Search tagswindow <https://chromestatus.com/features#tags:window>, position
<https://chromestatus.com/features#tags:position>, screen
<https://chromestatus.com/features#tags:screen>, coordinates
<https://chromestatus.com/features#tags:coordinates>, android
<https://chromestatus.com/features#tags:android>

TAG reviewNone

TAG review statusNot 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
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?No

Flag name on about://flagsNone

Finch feature nameNone

Non-finch justificationNone

Requires code in //chrome?False

Tracking bughttps://g-issues.chromium.org/issues/417632037

Launch bughttps://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
<https://chromestatus.com/>.

-- 
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+unsubscr...@chromium.org.
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAAz0gKehdm7rOzKSmQZ99L%3DJoYs6XTOip8fbxBhAqB7F6YE7EQ%40mail.gmail.com.

Reply via email to