W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

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

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Mar 2017 05:53:13 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-212941974-1489038791-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:09 UTC