Skip to content

[cssom-view] Window#screenLeft/screenTop #1091

@foolip

Description

@foolip

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions