@@ -305,8 +305,12 @@ <h2 id=extensions-to-the-window-interface><span class=secno>3.
305305 // viewport
306306 readonly attribute long < a href ="#dom-window-innerwidth "> innerWidth</ a > ;
307307 readonly attribute long < a href ="#dom-window-innerheight "> innerHeight</ a > ;
308- readonly attribute long < a href ="#dom-window-pagexoffset "> pageXOffset</ a > ;
309- readonly attribute long < a href ="#dom-window-pageyoffset "> pageYOffset</ a > ;
308+
309+ // viewport scrolling
310+ readonly attribute long < a href ="#dom-window-scrollx " title =dom-Window-scrollX > scrollX</ a > ;
311+ readonly attribute long < a href ="#dom-window-pagexoffset " title =dom-Window-pageXOffset > pageXOffset</ a > ;
312+ readonly attribute long < a href ="#dom-window-scrolly " title =dom-Window-scrollY > scrollY</ a > ;
313+ readonly attribute long < a href ="#dom-window-pageyoffset " title =dom-Window-pageYOffset > pageYOffset</ a > ;
310314 void < a href ="#dom-window-scroll " title =dom-Window-scroll > scroll</ a > (long < var title =""> x</ var > , long < var title =""> y</ var > );
311315 void < a href ="#dom-window-scrollto " title =dom-Window-scrollto > scrollTo</ a > (long < var title =""> x</ var > , long < var title =""> y</ var > );
312316 void < a href ="#dom-window-scrollby " title =dom-Window-scrollby > scrollBy</ a > (long < var title =""> x</ var > , long < var title =""> y</ var > );
@@ -364,15 +368,21 @@ <h2 id=extensions-to-the-window-interface><span class=secno>3.
364368 href ="#viewport "> viewport</ a > height including the size of a rendered
365369 scroll bar (if any).
366370
367- < p > The < dfn id =dom-window-pagexoffset > < code > pageXOffset</ code > </ dfn >
368- attribute < em class =ct > must</ em > return the x-coordinate, relative to the
369- < a href ="#initial-containing-block "> initial containing block</ a > origin,
370- of the left of the < a href ="#viewport "> viewport</ a > .
371+ < p > The < dfn id =dom-window-scrollx
372+ title =dom-Window-scrollX > < code > scrollX</ code > </ dfn > and < dfn
373+ id =dom-window-pagexoffset
374+ title =dom-Window-pageXOffset > < code > pageXOffset</ code > </ dfn > attributes < em
375+ class =ct > must</ em > return the x-coordinate, relative to the < a
376+ href ="#initial-containing-block "> initial containing block</ a > origin, of
377+ the left of the < a href ="#viewport "> viewport</ a > .
371378
372- < p > The < dfn id =dom-window-pageyoffset > < code > pageYOffset</ code > </ dfn >
373- attribute < em class =ct > must</ em > return the y-coordinate, relative to the
374- < a href ="#initial-containing-block "> initial containing block</ a > origin,
375- of the top of the < a href ="#viewport "> viewport</ a > .
379+ < p > The < dfn id =dom-window-scrolly
380+ title =dom-Window-scrollY > < code > scrollY</ code > </ dfn > and < dfn
381+ id =dom-window-pageyoffset
382+ title =dom-Window-pageYOffset > < code > pageYOffset</ code > </ dfn > attributes < em
383+ class =ct > must</ em > return the y-coordinate, relative to the < a
384+ href ="#initial-containing-block "> initial containing block</ a > origin, of
385+ the top of the < a href ="#viewport "> viewport</ a > .
376386
377387 < p > When the < dfn id =dom-window-scroll
378388 title =dom-Window-scroll > < code > scroll(< var title =""> x</ var > ,< var
@@ -453,11 +463,10 @@ <h2 id=extensions-to-the-window-interface><span class=secno>3.
453463 title =""> y</ var > )</ code > </ dfn > method is invoked, the user agent < em
454464 class =ct > must</ em > act as if the < a href ="#dom-window-scroll "> < code
455465 title =dom-Window-scroll > scroll()</ code > </ a > method was invoked with < var
456- title =""> x</ var > plus < a
457- href ="#dom-window-pagexoffset "> < code > pageXOffset</ code > </ a > as first
458- argument and < var title =""> y</ var > plus < a
459- href ="#dom-window-pageyoffset "> < code > pageYOffset</ code > </ a > as second
460- argument.
466+ title =""> x</ var > plus < a href ="#dom-window-scrollx "> < code
467+ title =dom-Window-scrollX > scrollX</ code > </ a > as first argument and < var
468+ title =""> y</ var > plus < a href ="#dom-window-scrolly "> < code
469+ title =dom-Window-scrollY > scrollY</ code > </ a > as second argument.
461470
462471 < p > The < dfn id =dom-window-screenx > < code > screenX</ code > </ dfn > attribute < em
463472 class =ct > must</ em > return the x-coordinate, relative to the origin of the
@@ -841,15 +850,16 @@ <h3 id=scroll-attributes><span class=secno>5.2. </span>The <code
841850
842851 < li >
843852 < p > If the element is the root element return the value of < a
844- href ="#dom-window-pageyoffset "> < code > pageYOffset</ code > </ a > .
853+ href ="#dom-window-scrolly "> < code
854+ title =dom-Window-scrollY > scrollY</ code > </ a > .
845855
846856 < li >
847857 < p > If the element is < a href ="#the-html-body-element "> the HTML
848858 < code > body</ code > element</ a > , the < a
849859 href ="#document "> < code > Document</ code > </ a > is in < a
850860 href ="#quirks-mode "> quirks mode</ a > , and the element does not have any
851- overflow, return the value of < a
852- href =" # dom-window-pageyoffset " > < code > pageYOffset </ code > </ a > .
861+ overflow, return the value of < a href =" #dom-window-scrolly " > < code
862+ title = dom-Window-scrollY > scrollY </ code > </ a > .
853863
854864 < li >
855865 < p > Return the y-coordinate of the < a href ="#content "> content</ a > at the
@@ -884,8 +894,10 @@ <h3 id=scroll-attributes><span class=secno>5.2. </span>The <code
884894 href ="#document "> < code > Document</ code > </ a > is in < a
885895 href ="#quirks-mode "> quirks mode</ a > , and the element does not have any
886896 vertical overflow, invoke < a href ="#dom-window-scroll "> < code
887- title =dom-Window-scroll > scroll()</ code > </ a > with zero as first argument
888- and < var title =""> y</ var > as second.
897+ title =dom-Window-scroll > scroll()</ code > </ a > with < a
898+ href ="#dom-window-scrollx "> < code
899+ title =dom-Window-scrollX > scrollX</ code > </ a > as first argument and < var
900+ title =""> y</ var > as second.
889901
890902 < li >
891903 < p > If < var title =""> y</ var > is infinite or NaN stop this algorithm.</ p >
@@ -921,15 +933,16 @@ <h3 id=scroll-attributes><span class=secno>5.2. </span>The <code
921933
922934 < li >
923935 < p > If the element is the root element return the value of < a
924- href ="#dom-window-pagexoffset "> < code > pageXOffset</ code > </ a > .
936+ href ="#dom-window-scrollx "> < code
937+ title =dom-Window-scrollX > scrollX</ code > </ a > .
925938
926939 < li >
927940 < p > If the element is < a href ="#the-html-body-element "> the HTML
928941 < code > body</ code > element</ a > , the < a
929942 href ="#document "> < code > Document</ code > </ a > is in < a
930943 href ="#quirks-mode "> quirks mode</ a > , and the element does not have any
931- overflow, return the value of < a
932- href =" # dom-window-pagexoffset " > < code > pageXOffset </ code > </ a > .
944+ overflow, return the value of < a href =" #dom-window-scrollx " > < code
945+ title = dom-Window-scrollX > scrollX </ code > </ a > .
933946
934947 < li >
935948 < p > Return the x-coordinate of the < a href ="#content "> content</ a > at the
@@ -965,7 +978,8 @@ <h3 id=scroll-attributes><span class=secno>5.2. </span>The <code
965978 href ="#quirks-mode "> quirks mode</ a > , and the element does not have any
966979 vertical overflow, invoke < a href ="#dom-window-scroll "> < code
967980 title =dom-Window-scroll > scroll()</ code > </ a > with < var title =""> x</ var >
968- as first argument and zero as second.
981+ as first argument and < a href ="#dom-window-scrolly "> < code
982+ title =dom-Window-scrollY > scrollY</ code > </ a > as second.
969983
970984 < li >
971985 < p > If < var title =""> x</ var > is infinite or NaN stop this algorithm.</ p >
0 commit comments