forked from whatwg/html
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate with the move event for window defined by CSSOM-View
UAs expose the coordinates of a window (window.screenX, window.screenY), enabling authors to track window movement and react to it. Without a corresponding event though, they have to resort to active polling, which is wasteful of resources, especially if done often enough to have a responsive UI. As resolved by the CSSWG (See w3c/csswg-drafts#7693), this adds an onmove event handler to keep track changes in window position without such need for active polling. The definition of the event itself goes to CSSOM-View, along with the geometric attributes whose changes it tracks. The privacy concerns related to exposing the window position in the first place are handled in CSSOM-View, which allows UAs to return fake information. The addition of the event doesn't change that: UAs that don't expose the real information continue not to (and the event won't fire). See explainer at https://github.com/Igalia/explainers/blob/main/onmove-event-handler/README.md CSS Part of the change: w3c/csswg-drafts#11278 Tests: web-platform-tests/wpt#49390 Implemented experimentally in Chrome: https://chromium-review.googlesource.com/c/chromium/src/+/6035050
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters