Currently, Element.scrollTo will only scroll the window in an effort to make the element in question visible. This doesn't work if the element is in a non-visible portion of a scrollable element container (overflow: scroll).
Consider enhancing Element.scrollTo so that it either:
scrolls both the window and any ancestor scrollable containers to ensure that the element is in view;
accepts further options to specify its behavior (including which container to scroll).
previous lighthouse ticket #1375 by @savetheclocktower
Currently,
Element.scrollTo
will only scroll the window in an effort to make the element in question visible. This doesn't work if the element is in a non-visible portion of a scrollable element container (overflow: scroll).Consider enhancing
Element.scrollTo
so that it either:this PR https://github.com/sstephenson/prototype/pull/64