-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cssom-view] Window#screenLeft/screenTop #1091
Comments
Given that usage of these attributes are high and that they are implemented in Chrome, WebKit, and Edge, standardization seems like the best option for screenLeft and screenTop. Add them into the spec as simple aliases of screenX and screenY. Fixes w3c#1091.
https://bugs.chromium.org/p/chromium/issues/detail?id=695572 had been closed as WontFix, i.e., this won't be removed from Chromium because the usage is too high. @tabatkins, can you send a spec change for this, or find someone who can? |
(It is still the case that this is missing in Gecko only. @emilio may be interested to know this.) |
Thanks for the heads-up :) |
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1498860 to keep track of this. Looks like there's a spec change ready in #2669, just no editor for the spec... :) |
https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface
screenX
andscreenY
are in the spec, but notscreenLeft
orscreenTop
.These two attributes are in Chromium, EdgeHTML and WebKit, but not Gecko, as tested with:
https://software.hixie.ch/utilities/js/live-dom-viewer/saved/4927
Use counters:
https://www.chromestatus.com/metrics/feature/timeline/popularity/697
https://www.chromestatus.com/metrics/feature/timeline/popularity/698
Risk of removal is hard to judge, but given three implementations standardization should be the default choice.
In Chromium and WebKit, they are simply aliases of
screenX
andscreenY
:https://chromium.googlesource.com/chromium/src/+/706a26bfd8ee3677c8b59fc1a6859276ab7686c7/third_party/WebKit/Source/core/frame/LocalDOMWindow.h#139
https://trac.webkit.org/browser/trunk/Source/WebCore/page/DOMWindow.h?rev=211654#L170
@zcorpan
The text was updated successfully, but these errors were encountered: