If the element is the root element invoke scroll() on window with scrollX on window as first argument and y as second argument, and terminate these steps.
According to this definition x is ignored and replaced with window.scrollX when running scroll() on the root element.
I doubt that that is the intended behavior.
It seems as if this is a copy paste error, as this is the exact same text as for step 8 for setting scrollTop, where this would be the correct behavior.
Should the definition be rewritten to pass both x and y to scroll() on window?
If the element is the root element invoke scroll() on window with x as first argument and y as second argument, and terminate these steps.
Is there a typo in the description of the dom element
scroll()
method?According to this definition
x
is ignored and replaced withwindow.scrollX
when runningscroll()
on the root element. I doubt that that is the intended behavior.It seems as if this is a copy paste error, as this is the exact same text as for step 8 for setting scrollTop, where this would be the correct behavior.
Should the definition be rewritten to pass both
x
andy
to scroll() on window?