Skip to content

Commit 035310e

Browse files
authored
Merge pull request w3c#2669 from csnardi/add-screen-left-top
[cssom-view] Add window.screenLeft and window.screenTop as aliases
2 parents cc001bf + c76ef6d commit 035310e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cssom-view-1/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,9 @@ partial interface Window {
454454

455455
// client
456456
[Replaceable] readonly attribute long screenX;
457+
[Replaceable] readonly attribute long screenLeft;
457458
[Replaceable] readonly attribute long screenY;
459+
[Replaceable] readonly attribute long screenTop;
458460
[Replaceable] readonly attribute long outerWidth;
459461
[Replaceable] readonly attribute long outerHeight;
460462
[Replaceable] readonly attribute double devicePixelRatio;
@@ -609,12 +611,12 @@ user agent must run these steps:
609611
1. Add the value of {{scrollY}} to the {{ScrollToOptions/top}} dictionary member.
610612
1. Act as if the {{Window/scroll()}} method was invoked with <var>options</var> as the only argument.
611613

612-
The <dfn attribute for=Window>screenX</dfn> attribute must return the x-coordinate,
614+
The <dfn attribute for=Window>screenX</dfn> and <dfn attribute for=Window>screenLeft</dfn> attributes must return the x-coordinate,
613615
relative to the origin of the <a>Web-exposed screen area</a>, of the left of
614616
the client window as number of <a lt=px value>CSS pixels</a>, or zero if there is no such
615617
thing. <!--fingerprint-->
616618

617-
The <dfn attribute for=Window>screenY</dfn> attribute must return the y-coordinate,
619+
The <dfn attribute for=Window>screenY</dfn> and <dfn attribute for=Window>screenTop</dfn> attributes must return the y-coordinate,
618620
relative to the origin of the screen of the <a>Web-exposed screen area</a>, of the top of
619621
the client window as number of <a lt=px value>CSS pixels</a>, or zero if there is no such
620622
thing. <!--fingerprint-->

0 commit comments

Comments
 (0)