[Webkit-unassigned] [Bug 12753] Incorrect values for window.screenTop and window.screenLeft

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 19 07:37:24 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=12753

Gérard Talbot <browserbugs2 at gtalbot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |browserbugs2 at gtalbot.org

--- Comment #5 from Gérard Talbot <browserbugs2 at gtalbot.org> ---
Documentation
-------------

window.screenX (part of CSSOM View Module)
https://www.w3.org/TR/cssom-view-1/#dom-window-screenx
https://drafts.csswg.org/cssom-view/#dom-window-screenx
and
https://developer.mozilla.org/en/docs/Web/API/Window/screenX


window.mozInnerScreenX
https://developer.mozilla.org/en-US/docs/Web/API/Window/mozInnerScreenX


window.screenY (part of CSSOM View Module)
https://www.w3.org/TR/cssom-view-1/#dom-window-screeny
https://drafts.csswg.org/cssom-view/#dom-window-screeny
and
https://developer.mozilla.org/en/docs/Web/API/Window/screenY


window.mozInnerScreenY
https://developer.mozilla.org/en-US/docs/Web/API/Window/mozInnerScreenY


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."
https://msdn.microsoft.com/en-us/library/ms534389(v=vs.85).aspx


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."
https://msdn.microsoft.com/en-us/library/ms534390(v=vs.85).aspx


Interactive DHTML demo
----------------------

http://www.gtalbot.org/DHTMLSection/WindowEventsNS6.html

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:

http://www.gtalbot.org/DHTMLSection/ScreenXYComparedScreenLeftTop.html


Useful links
------------

Re: window.innerScreenX and window.innerScreenY
http://lists.w3.org/Archives/Public/www-style/2016Dec/0054.html


Webkit equivalents of mozInnerScreenX / Y
https://bugs.chromium.org/p/chromium/issues/detail?id=151983


Bug 486200: Need API to compute screen coordinates of DOM elements
https://bugzilla.mozilla.org/show_bug.cgi?id=486200#c1
"
(...) 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.
"

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161219/2ec4c901/attachment.html>


More information about the webkit-unassigned mailing list