Skip to content

Commit 035310e

Browse files
authored
Merge pull request #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 options as the only argument.
611613

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

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

0 commit comments

Comments
 (0)