<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:browserbugs2@gtalbot.org" title="Gérard Talbot <browserbugs2@gtalbot.org>"> <span class="fn">Gérard Talbot</span></a>
</span> changed
<a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Incorrect values for window.screenTop and window.screenLeft"
href="https://bugs.webkit.org/show_bug.cgi?id=12753">bug 12753</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>browserbugs2@gtalbot.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Incorrect values for window.screenTop and window.screenLeft"
href="https://bugs.webkit.org/show_bug.cgi?id=12753#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Incorrect values for window.screenTop and window.screenLeft"
href="https://bugs.webkit.org/show_bug.cgi?id=12753">bug 12753</a>
from <span class="vcard"><a class="email" href="mailto:browserbugs2@gtalbot.org" title="Gérard Talbot <browserbugs2@gtalbot.org>"> <span class="fn">Gérard Talbot</span></a>
</span></b>
<pre>Documentation
-------------
window.screenX (part of CSSOM View Module)
<a href="https://www.w3.org/TR/cssom-view-1/#dom-window-screenx">https://www.w3.org/TR/cssom-view-1/#dom-window-screenx</a>
<a href="https://drafts.csswg.org/cssom-view/#dom-window-screenx">https://drafts.csswg.org/cssom-view/#dom-window-screenx</a>
and
<a href="https://developer.mozilla.org/en/docs/Web/API/Window/screenX">https://developer.mozilla.org/en/docs/Web/API/Window/screenX</a>
window.mozInnerScreenX
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/mozInnerScreenX">https://developer.mozilla.org/en-US/docs/Web/API/Window/mozInnerScreenX</a>
window.screenY (part of CSSOM View Module)
<a href="https://www.w3.org/TR/cssom-view-1/#dom-window-screeny">https://www.w3.org/TR/cssom-view-1/#dom-window-screeny</a>
<a href="https://drafts.csswg.org/cssom-view/#dom-window-screeny">https://drafts.csswg.org/cssom-view/#dom-window-screeny</a>
and
<a href="https://developer.mozilla.org/en/docs/Web/API/Window/screenY">https://developer.mozilla.org/en/docs/Web/API/Window/screenY</a>
window.mozInnerScreenY
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/mozInnerScreenY">https://developer.mozilla.org/en-US/docs/Web/API/Window/mozInnerScreenY</a>
window.screenLeft (part of IE proprietary DOM0 model)
"Retrieves the x-coordinate of the upper left-hand corner of the window
frame, relative to the upper left-hand corner of the screen."
<a href="https://msdn.microsoft.com/en-us/library/ms534389(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/ms534389(v=vs.85).aspx</a>
window.screenTop (part of IE proprietary DOM0 model)
"Retrieves the y-coordinate of the top corner of the client area, relative to the top corner of the screen."
<a href="https://msdn.microsoft.com/en-us/library/ms534390(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/ms534390(v=vs.85).aspx</a>
Interactive DHTML demo
----------------------
<a href="http://www.gtalbot.org/DHTMLSection/WindowEventsNS6.html">http://www.gtalbot.org/DHTMLSection/WindowEventsNS6.html</a>
the screenX, mozInnerScreenX, screenY, mozInnerScreenY values are inside the "Screen and window data" layer which can be resized. Moving the window, adding or removing various toolbars (or sidebar or explorer bar) will impact those window properties values.
Screenshots
-----------
What those window.screenX, window.screenLeft, window.screenY and window.screenTop properties refer to in browsers:
<a href="http://www.gtalbot.org/DHTMLSection/ScreenXYComparedScreenLeftTop.html">http://www.gtalbot.org/DHTMLSection/ScreenXYComparedScreenLeftTop.html</a>
Useful links
------------
Re: window.innerScreenX and window.innerScreenY
<a href="http://lists.w3.org/Archives/Public/www-style/2016Dec/0054.html">http://lists.w3.org/Archives/Public/www-style/2016Dec/0054.html</a>
Webkit equivalents of mozInnerScreenX / Y
<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=151983">https://bugs.chromium.org/p/chromium/issues/detail?id=151983</a>
Bug 486200: Need API to compute screen coordinates of DOM elements
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=486200#c1">https://bugzilla.mozilla.org/show_bug.cgi?id=486200#c1</a>
"
(...) to add window.mozInnerScreenX/Y properties that return
the screen coordinates of the top-left of the viewport. It should be
trivial, I'll do it ASAP.
"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>