[csswg-drafts] [cssom-view] Window#screenLeft/screenTop

foolip has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] Window#screenLeft/screenTop ==
https://drafts.csswg.org/cssom-view/#extensions-to-the-window-interface

`screenX` and `screenY` are in the spec, but not `screenLeft` or `screenTop`.

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` and `screenY`:
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 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1091 using your GitHub account

Received on Thursday, 9 March 2017 05:53:19 UTC